Skip to content

Commit 6af52a6

Browse files
committed
fixes #15 renamed struct fields
1 parent 002a55d commit 6af52a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/handlers/execution.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub struct Success {
1212
pub memory: u64,
1313
pub code_answer: Vec<String>,
1414
pub code_output: Vec<String>,
15+
#[serde(rename = "std_output_list")]
1516
pub std_output: Vec<String>,
1617
pub elapsed_time: u64,
1718
pub task_finish_time: u64,
@@ -22,6 +23,7 @@ pub struct Success {
2223
pub expected_memory: u64,
2324
pub expected_code_answer: Vec<String>,
2425
pub expected_code_output: Vec<String>,
26+
#[serde(rename = "expected_std_output_list")]
2527
pub expected_std_output: Vec<String>,
2628
pub expected_elapsed_time: u64,
2729
pub expected_task_finish_time: u64,
@@ -39,13 +41,15 @@ pub struct Success {
3941
pub struct CompileError {
4042
pub compile_error: String,
4143
pub full_compile_error: String,
44+
#[serde(rename = "std_output_list")]
4245
pub std_output: Vec<String>,
4346
}
4447

4548
#[derive(Debug, Deserialize)]
4649
pub struct RuntimeError {
4750
pub runtime_error: String,
4851
pub full_runtime_error: String,
52+
#[serde(rename = "std_output_list")]
4953
pub std_output: Vec<String>,
5054
}
5155

@@ -64,6 +68,7 @@ pub struct LimitExceeded {
6468
pub memory: u64,
6569
pub code_answer: Vec<String>,
6670
pub code_output: Vec<String>,
71+
#[serde(rename = "std_output_list")]
6772
pub std_output: Vec<String>,
6873
pub elapsed_time: u64,
6974
pub task_finish_time: u64,

0 commit comments

Comments
 (0)