diff --git a/src/common/fs.rs b/src/common/fs.rs index 79fb68e..6c7da19 100644 --- a/src/common/fs.rs +++ b/src/common/fs.rs @@ -2,7 +2,7 @@ use crate::prelude::*; use remove_dir_all::remove_dir_all; use std::ffi::OsStr; use std::fs::{self, create_dir_all, File}; -use std::io; +use std::io::BufReader; use thiserror::Error; use std::env::current_exe; @@ -43,12 +43,12 @@ pub fn open>(filename: P) -> Result { pub fn read_lines>(filename: P) -> Result>> { let file = open(filename.as_ref())?; - Ok(io::BufReader::new(file) + Ok(BufReader::new(file) .lines() .map(|line| line.map_err(Error::from))) } -pub fn pathbuf_to_string>(pathbuf: P) -> Result { +fn pathbuf_to_string>(pathbuf: P) -> Result { Ok(pathbuf.as_ref() .as_os_str() .to_str()