Skip to content

Commit 11f2da5

Browse files
committed
fix large error enum
1 parent 6f58b09 commit 11f2da5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test-suite/src/case.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub enum ScenarioError {
5151
},
5252
/// Eure to JSON conversion output mismatch
5353
EureToJsonMismatch {
54-
expected: serde_json::Value,
55-
actual: serde_json::Value,
54+
expected: Box<serde_json::Value>,
55+
actual: Box<serde_json::Value>,
5656
},
5757
/// JSON to Eure conversion output mismatch
5858
JsonToEureMismatch {
@@ -65,8 +65,8 @@ pub enum ScenarioError {
6565
JsonParseError { message: String },
6666
/// JSON Schema output mismatch
6767
JsonSchemaMismatch {
68-
expected: serde_json::Value,
69-
actual: serde_json::Value,
68+
expected: Box<serde_json::Value>,
69+
actual: Box<serde_json::Value>,
7070
},
7171
/// Schema conversion error
7272
SchemaConversionError { message: String },
@@ -929,8 +929,8 @@ impl EureToJsonScenario<'_> {
929929
})?;
930930
if actual != *self.output_json {
931931
return Err(ScenarioError::EureToJsonMismatch {
932-
expected: self.output_json.clone(),
933-
actual,
932+
expected: Box::new(self.output_json.clone()),
933+
actual: Box::new(actual),
934934
});
935935
}
936936
Ok(())
@@ -1032,8 +1032,8 @@ impl TomlToJsonScenario<'_> {
10321032
// Compare JSON values
10331033
if actual_json != expected_json {
10341034
return Err(ScenarioError::EureToJsonMismatch {
1035-
expected: expected_json,
1036-
actual: actual_json,
1035+
expected: Box::new(expected_json),
1036+
actual: Box::new(actual_json),
10371037
});
10381038
}
10391039
Ok(())
@@ -1396,8 +1396,8 @@ impl EureSchemaToJsonSchemaScenario<'_> {
13961396
// Compare normalized outputs
13971397
if actual_normalized != expected_normalized {
13981398
return Err(ScenarioError::JsonSchemaMismatch {
1399-
expected: expected_normalized,
1400-
actual: actual_normalized,
1399+
expected: Box::new(expected_normalized),
1400+
actual: Box::new(actual_normalized),
14011401
});
14021402
}
14031403

0 commit comments

Comments
 (0)