Code cleanup
Rust Build / Check (pull_request) Successful in 26s
Rust Build / Rustfmt (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 44s
Rust Build / Test Suite (pull_request) Successful in 38s
Rust Build / Check (pull_request) Successful in 26s
Rust Build / Rustfmt (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 44s
Rust Build / Test Suite (pull_request) Successful in 38s
This commit is contained in:
+1
-2
@@ -46,9 +46,8 @@ impl NumberParser {
|
||||
numbers: Vec<textsender_models::contact::Contact>,
|
||||
filename: &str,
|
||||
) {
|
||||
// let filename = String::from("numbers.json");
|
||||
match serde_json::to_string(&numbers) {
|
||||
Ok(json_string) => match std::fs::write(&filename, json_string) {
|
||||
Ok(json_string) => match std::fs::write(filename, json_string) {
|
||||
Ok(_) => {
|
||||
println!("Saved to: {filename:?}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user