diff --git a/src/fs.rs b/src/fs.rs index 7202259..e0c906e 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -311,7 +311,7 @@ impl FileSystemStats { /// A FAT filesystem object. /// /// `FileSystem` struct is representing a state of a mounted FAT volume. -pub struct FileSystem { +pub struct FileSystem { pub(crate) disk: RefCell, pub(crate) options: FsOptions, fat_type: FatType, diff --git a/tests/format.rs b/tests/format.rs index ee410e8..b5a4e30 100644 --- a/tests/format.rs +++ b/tests/format.rs @@ -1,15 +1,14 @@ use std::io; use std::io::prelude::*; -use fatfs::{DefaultTimeProvider, LossyOemCpConverter, StdIoWrapper}; +use fatfs::StdIoWrapper; use fscommon::BufStream; const KB: u64 = 1024; const MB: u64 = KB * 1024; const TEST_STR: &str = "Hi there Rust programmer!\n"; -type FileSystem = - fatfs::FileSystem>>>, DefaultTimeProvider, LossyOemCpConverter>; +type FileSystem = fatfs::FileSystem>>>>; fn basic_fs_test(fs: &FileSystem) { let stats = fs.stats().expect("stats"); diff --git a/tests/read.rs b/tests/read.rs index 9916489..ae12acb 100644 --- a/tests/read.rs +++ b/tests/read.rs @@ -3,7 +3,7 @@ use std::io::prelude::*; use std::io::SeekFrom; use std::str; -use fatfs::{DefaultTimeProvider, FatType, FsOptions, LossyOemCpConverter, StdIoWrapper}; +use fatfs::{FatType, FsOptions, StdIoWrapper}; use fscommon::BufStream; const TEST_TEXT: &str = "Rust is cool!\n"; @@ -11,7 +11,7 @@ const FAT12_IMG: &str = "resources/fat12.img"; const FAT16_IMG: &str = "resources/fat16.img"; const FAT32_IMG: &str = "resources/fat32.img"; -type FileSystem = fatfs::FileSystem>, DefaultTimeProvider, LossyOemCpConverter>; +type FileSystem = fatfs::FileSystem>>; fn call_with_fs(f: F, filename: &str) { let _ = env_logger::builder().is_test(true).try_init(); diff --git a/tests/write.rs b/tests/write.rs index e452263..3c1f9f6 100644 --- a/tests/write.rs +++ b/tests/write.rs @@ -4,7 +4,7 @@ use std::io::prelude::*; use std::mem; use std::str; -use fatfs::{DefaultTimeProvider, FsOptions, LossyOemCpConverter, StdIoWrapper}; +use fatfs::{FsOptions, StdIoWrapper}; use fscommon::BufStream; const FAT12_IMG: &str = "fat12.img"; @@ -15,7 +15,7 @@ const TMP_DIR: &str = "tmp"; const TEST_STR: &str = "Hi there Rust programmer!\n"; const TEST_STR2: &str = "Rust is cool!\n"; -type FileSystem = fatfs::FileSystem>, DefaultTimeProvider, LossyOemCpConverter>; +type FileSystem = fatfs::FileSystem>>; fn call_with_tmp_img(f: F, filename: &str, test_seq: u32) { let _ = env_logger::builder().is_test(true).try_init();