Skip to content

Commit 7f4aa0c

Browse files
committed
Revert unneeded changes.
1 parent 95a1b05 commit 7f4aa0c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/fs.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ impl<T: std::io::Read + std::io::Write + std::io::Seek> IntoStorage<io::StdIoWra
356356
}
357357
}
358358

359-
type FatSlice<'f, IO, TP, OCC, E> = DiskSlice<FsIoAdapter<'f, IO, TP, OCC>, E>;
360-
361359
impl<IO: Read + Write + Seek, TP, OCC> FileSystem<IO, TP, OCC> {
362360
/// Creates a new filesystem object instance.
363361
///
@@ -501,15 +499,15 @@ impl<IO: Read + Write + Seek, TP, OCC> FileSystem<IO, TP, OCC> {
501499
self.bpb.clusters_from_bytes(bytes)
502500
}
503501

504-
fn fat_slice(&self) -> FatSlice<'_, IO, TP, OCC, IO::Error> {
502+
fn fat_slice(&self) -> impl ReadWriteSeek<Error = Error<IO::Error>> + '_ {
505503
let io = FsIoAdapter { fs: self };
506504
fat_slice(io, &self.bpb)
507505
}
508506

509507
pub(crate) fn cluster_iter(
510508
&self,
511509
cluster: u32,
512-
) -> ClusterIterator<FatSlice<'_, IO, TP, OCC, IO::Error>, IO::Error> {
510+
) -> ClusterIterator<impl ReadWriteSeek<Error = Error<IO::Error>> + '_, IO::Error> {
513511
let disk_slice = self.fat_slice();
514512
ClusterIterator::new(disk_slice, self.fat_type, cluster)
515513
}

tests/write.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ fn test_dirty_flag(tmp_path: &str) {
350350
let fs = open_filesystem_rw(tmp_path, false);
351351
assert!(matches!(fs, Err(Error::DirtyFileSystem)));
352352
// Make sure remounting does not clear the dirty flag
353-
// Check if volume is dirty now
354353
let fs = open_filesystem_rw(tmp_path, false);
355354
assert!(matches!(fs, Err(Error::DirtyFileSystem)));
356355
// Make sure clearing the dirty flag allows mounting to succeed

0 commit comments

Comments
 (0)