Skip to content

Commit 7788984

Browse files
fix(clippy): add clippy exceptions
1 parent 5a872c7 commit 7788984

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/impls/altroot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ impl AltrootFS {
2222
}
2323

2424
impl AltrootFS {
25+
#[allow(clippy::manual_strip)] // strip prefix manually for MSRV 1.32
2526
fn path(&self, path: &str) -> VfsResult<VfsPath> {
2627
if path.is_empty() {
2728
return Ok(self.root.clone());

src/impls/memory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ impl Drop for WritableFile {
8282
}
8383

8484
struct ReadableFile {
85+
#[allow(clippy::rc_buffer)] // to allow accessing the same object as writable
8586
content: Arc<Vec<u8>>,
8687
position: u64,
8788
}
@@ -271,6 +272,7 @@ impl MemoryFsImpl {
271272

272273
struct MemoryFile {
273274
file_type: VfsFileType,
275+
#[allow(clippy::rc_buffer)] // to allow accessing the same object as writable
274276
content: Arc<Vec<u8>>,
275277
}
276278

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
//! # Ok::<(), VfsError>(())
4646
//! # }
4747
//! ```
48+
//!
49+
50+
#![allow(clippy::unknown_clippy_lints)]
51+
4852
#[cfg(test)]
4953
#[macro_use]
5054
pub mod test_macros;

0 commit comments

Comments
 (0)