@@ -13,6 +13,7 @@ use crate::dir::{Dir, DirRawStream};
1313use crate :: dir_entry:: { DirFileEntryData , FileAttributes , SFN_PADDING , SFN_SIZE } ;
1414use crate :: error:: Error ;
1515use crate :: file:: File ;
16+ use crate :: io:: private:: Sealed ;
1617use crate :: io:: { self , IoBase , Read , ReadFile , ReadLeExt , Seek , SeekFrom , Write , WriteFile , WriteLeExt } ;
1718use crate :: table:: {
1819 alloc_cluster, count_free_clusters, format_fat, read_fat_flags, ClusterIterator , RESERVED_FAT_ENTRIES ,
@@ -694,6 +695,8 @@ pub(crate) struct FsIoAdapter<'a, IO: ReadWriteSeek, TP, OCC> {
694695 fs : & ' a FileSystem < IO , TP , OCC > ,
695696}
696697
698+ impl < IO : ReadWriteSeek , TP , OCC > Sealed for FsIoAdapter < ' _ , IO , TP , OCC > { }
699+
697700impl < IO : ReadWriteSeek , TP , OCC > IoBase for FsIoAdapter < ' _ , IO , TP , OCC > {
698701 type Error = IO :: Error ;
699702}
@@ -798,6 +801,8 @@ impl<B: Clone, S> Clone for DiskSlice<B, S> {
798801 }
799802}
800803
804+ impl < B , S : IoBase > Sealed for DiskSlice < B , S > { }
805+
801806impl < B , S : IoBase > IoBase for DiskSlice < B , S > {
802807 type Error = Error < S :: Error > ;
803808}
0 commit comments