mirror of
https://gitlab.com/orbital-debris-research/directed-study/report-1.git
synced 2025-06-15 22:46:47 +00:00
clippy
This commit is contained in:
parent
0f6aa033e9
commit
b772f922e2
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user