mirror of
https://gitlab.com/orbital-debris-research/directed-study/report-1.git
synced 2025-06-16 06:56:45 +00:00
clippy
This commit is contained in:
parent
0f6aa033e9
commit
b772f922e2
@ -1,9 +1,5 @@
|
|||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
use std::{
|
use std::{fs, io::Write};
|
||||||
ascii::AsciiExt,
|
|
||||||
fs,
|
|
||||||
io::{BufRead, Write},
|
|
||||||
};
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate scan_fmt;
|
extern crate scan_fmt;
|
||||||
use csv::Writer;
|
use csv::Writer;
|
||||||
@ -54,7 +50,7 @@ fn main() {
|
|||||||
|
|
||||||
let mut outfile = fs::File::create("../compiled.csv").unwrap();
|
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 {
|
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 Izy = scan_fmt!(&infile[32], "Izy {}", f64).unwrap();
|
||||||
let Izz = scan_fmt!(&infile[33], "Izz {}", f64).unwrap();
|
let Izz = scan_fmt!(&infile[33], "Izz {}", f64).unwrap();
|
||||||
|
|
||||||
return Properties {
|
Properties {
|
||||||
part_number,
|
part_number,
|
||||||
part_name,
|
part_name,
|
||||||
material_name,
|
material_name,
|
||||||
@ -116,5 +112,5 @@ fn parse_props(infile: Vec<String>) -> Properties {
|
|||||||
Izx,
|
Izx,
|
||||||
Izy,
|
Izy,
|
||||||
Izz,
|
Izz,
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user