Saving changes
Rust Build / Check (pull_request) Failing after 26s
Rust Build / Rustfmt (pull_request) Failing after 32s
Rust Build / Test Suite (pull_request) Failing after 1m0s
Rust Build / Clippy (pull_request) Failing after 40s
Rust Build / build (pull_request) Failing after 49s
Rust Build / Check (pull_request) Failing after 26s
Rust Build / Rustfmt (pull_request) Failing after 32s
Rust Build / Test Suite (pull_request) Failing after 1m0s
Rust Build / Clippy (pull_request) Failing after 40s
Rust Build / build (pull_request) Failing after 49s
This commit is contained in:
+10
-5
@@ -11,10 +11,15 @@ fn main() {
|
||||
|
||||
let filepath = &args[1];
|
||||
println!("Filepath: {filepath:?}");
|
||||
let prsr = parser::NumberParser{filepath: *filepath};
|
||||
let prsr = parser::NumberParser{filepath: filepath.clone()};
|
||||
|
||||
let numbers = prsr.file_dump();
|
||||
prsr.print_values(&numbers);
|
||||
|
||||
prsr.save_file(numbers);
|
||||
match prsr.file_dump() {
|
||||
Ok(numbers) => {
|
||||
prsr.print_values(&numbers);
|
||||
prsr.save_file(numbers);
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("Error: {err:?}");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user