File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ impl AltrootFS {
22
22
}
23
23
24
24
impl AltrootFS {
25
+ #[ allow( clippy:: manual_strip) ] // strip prefix manually for MSRV 1.32
25
26
fn path ( & self , path : & str ) -> VfsResult < VfsPath > {
26
27
if path. is_empty ( ) {
27
28
return Ok ( self . root . clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ impl Drop for WritableFile {
82
82
}
83
83
84
84
struct ReadableFile {
85
+ #[ allow( clippy:: rc_buffer) ] // to allow accessing the same object as writable
85
86
content : Arc < Vec < u8 > > ,
86
87
position : u64 ,
87
88
}
@@ -271,6 +272,7 @@ impl MemoryFsImpl {
271
272
272
273
struct MemoryFile {
273
274
file_type : VfsFileType ,
275
+ #[ allow( clippy:: rc_buffer) ] // to allow accessing the same object as writable
274
276
content : Arc < Vec < u8 > > ,
275
277
}
276
278
Original file line number Diff line number Diff line change 45
45
//! # Ok::<(), VfsError>(())
46
46
//! # }
47
47
//! ```
48
+ //!
49
+
50
+ #![ allow( clippy:: unknown_clippy_lints) ]
51
+
48
52
#[ cfg( test) ]
49
53
#[ macro_use]
50
54
pub mod test_macros;
You can’t perform that action at this time.
0 commit comments