Skip to content

Commit 8ced73f

Browse files
committed
removed redundancy of terminal output
Signed-off-by: dvishal485 <dvishal485@gmail.com>
1 parent 61d71b2 commit 8ced73f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/leetcode_api/execution.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl std::fmt::Display for Success {
120120
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121121
let seperator = "-------------------------------";
122122
let part1 = format!(
123-
"{}\n\nOutput : {:?}\nExpected : {:?}\n",
123+
"{}\n\n",
124124
if self.correct_answer {
125125
"Testcase execution success".green().bold()
126126
} else {
@@ -130,9 +130,7 @@ impl std::fmt::Display for Success {
130130
)
131131
.red()
132132
.bold()
133-
},
134-
self.code_answer,
135-
self.expected_code_answer
133+
}
136134
);
137135
let mut part2 = Vec::with_capacity(self.code_answer.len());
138136
for i in 0..self.code_answer.len() {

0 commit comments

Comments
 (0)