Remove rust code (#6)

Reviewed-on: #6
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-07-27 19:27:02 +00:00
committed by phoenix
parent 903ada907f
commit c930c146e5
6 changed files with 1 additions and 397 deletions
-39
View File
@@ -1,39 +0,0 @@
use std::env;
mod parser;
fn main() {
let args: Vec<String> = env::args().collect();
if args.len() < 2 {
println!("Provide path to file");
return;
}
let filepath: &String = args.get(1).unwrap();
println!("Filepath is: {:?}", filepath);
let myparser = parser::parser::NumberParser {
filepath: filepath.clone(),
};
let rawvalues = myparser.filedump();
let parsed_values = myparser.updatevalues(&rawvalues);
let newupdated = myparser.removedups(&parsed_values);
myparser.print_values(&newupdated, true);
let result = myparser.save_file(parsed_values);
match result {
Ok(o) => {
println!("Successfully saved file: {:?}", o);
}
Err(er) => {
println!("Error saving file: {:?}", er);
}
}
}