Run: cargo clippy --fix -Z unstable-options and cargo fmt

This commit is contained in:
Luis Moreno
2020-11-08 19:39:11 -04:00
parent 8281a1620e
commit 860056c3ba
48 changed files with 367 additions and 395 deletions
+2 -2
View File
@@ -61,14 +61,14 @@ pub(crate) fn serialize_data<X: RealNumber, Y: RealNumber>(
let x: Vec<u8> = dataset
.data
.iter()
.map(|v| *v)
.copied()
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec().into_iter())
.collect();
file.write_all(&x)?;
let y: Vec<u8> = dataset
.target
.iter()
.map(|v| *v)
.copied()
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec().into_iter())
.collect();
file.write_all(&y)?;