@@ -11,6 +11,7 @@ use crate::dir::{Dir, DirRawStream};
1111use crate :: dir_entry:: { DirFileEntryData , FileAttributes , SFN_PADDING , SFN_SIZE } ;
1212use crate :: error:: Error ;
1313use crate :: file:: File ;
14+ use crate :: io:: private:: Sealed ;
1415use crate :: io:: { self , IoBase , Read , ReadFile , ReadLeExt , Seek , SeekFrom , Write , WriteFile , WriteLeExt } ;
1516use crate :: table:: {
1617 alloc_cluster, count_free_clusters, format_fat, read_fat_flags, ClusterIterator , RESERVED_FAT_ENTRIES ,
@@ -706,6 +707,8 @@ pub(crate) struct FsIoAdapter<'a, IO: ReadWriteSeek, TP, OCC> {
706707 fs : & ' a FileSystem < IO , TP , OCC > ,
707708}
708709
710+ impl < IO : ReadWriteSeek , TP , OCC > Sealed for FsIoAdapter < ' _ , IO , TP , OCC > { }
711+
709712impl < IO : ReadWriteSeek , TP , OCC > IoBase for FsIoAdapter < ' _ , IO , TP , OCC > {
710713 type Error = IO :: Error ;
711714}
@@ -810,6 +813,8 @@ impl<B: Clone, S> Clone for DiskSlice<B, S> {
810813 }
811814}
812815
816+ impl < B , S : IoBase > Sealed for DiskSlice < B , S > { }
817+
813818impl < B , S : IoBase > IoBase for DiskSlice < B , S > {
814819 type Error = Error < S :: Error > ;
815820}
0 commit comments