Factorization of use statements. master
authorGreg Burri <greg.burri@gmail.com>
Sun, 18 Sep 2022 20:29:54 +0000 (22:29 +0200)
committerGreg Burri <greg.burri@gmail.com>
Sun, 18 Sep 2022 20:29:54 +0000 (22:29 +0200)
ch7-file-and-storage/src/fview.rs
ch7-file-and-storage/src/main.rs

index 2f18dc4..3277713 100644 (file)
@@ -1,6 +1,8 @@
-use std::fs::File;
-use std::io::prelude::*;
-use std::env;
+use std::{
+    fs::File,
+    io::prelude::*,
+    env,
+};
 
 const BYTES_PER_LINE: usize = 16;
 
index af9214d..12745ea 100644 (file)
@@ -1,6 +1,7 @@
-use std::fs::File;
-use std::fs::OpenOptions;
-use std::io::prelude::*;
+use std::{
+    fs::OpenOptions,
+    io::prelude::*,
+};
 
 mod serde;
 mod fview;