This commit is contained in:
MisterBiggs 2022-02-12 20:34:13 -07:00
parent 0f6aa033e9
commit b772f922e2

View File

@ -1,9 +1,5 @@
#![allow(non_snake_case)]
use std::{
ascii::AsciiExt,
fs,
io::{BufRead, Write},
};
use std::{fs, io::Write};
#[macro_use]
extern crate scan_fmt;
use csv::Writer;
@ -54,7 +50,7 @@ fn main() {
let mut outfile = fs::File::create("../compiled.csv").unwrap();
outfile.write(data.as_bytes()).unwrap();
outfile.write_all(data.as_bytes()).unwrap();
}
fn parse_props(infile: Vec<String>) -> Properties {
@ -93,7 +89,7 @@ fn parse_props(infile: Vec<String>) -> Properties {
let Izy = scan_fmt!(&infile[32], "Izy {}", f64).unwrap();
let Izz = scan_fmt!(&infile[33], "Izz {}", f64).unwrap();
return Properties {
Properties {
part_number,
part_name,
material_name,
@ -116,5 +112,5 @@ fn parse_props(infile: Vec<String>) -> Properties {
Izx,
Izy,
Izz,
};
}
}