Skip to content

Commit a8f3858

Browse files
committed
Ignore incorrect clippy needless_pass_by_ref_mut lint
Until rust-lang/rust-clippy#11314 is merged.
1 parent eb0a058 commit a8f3858

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

wnfs/src/private/directory.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ impl PrivateDirectory {
331331
Ok(SearchResult::Found(working_dir))
332332
}
333333

334+
#[allow(clippy::suspicious)]
334335
pub(crate) async fn get_or_create_leaf_dir_mut<'a>(
335336
self: &'a mut Rc<Self>,
336337
path_segments: &[String],
@@ -618,6 +619,7 @@ impl PrivateDirectory {
618619
/// Ok(())
619620
/// }
620621
/// ```
622+
#[allow(clippy::suspicious)]
621623
pub async fn open_file_mut<'a>(
622624
self: &'a mut Rc<Self>,
623625
path_segments: &[String],
@@ -1362,6 +1364,7 @@ impl PrivateDirectoryContent {
13621364
///
13631365
/// The header cid is required as it's not stored in the PrivateDirectoryContent itself, but
13641366
/// stored in the serialized format.
1367+
#[allow(clippy::suspicious)]
13651368
pub(crate) async fn store(
13661369
&self,
13671370
header_cid: Cid,

wnfs/src/private/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ impl PrivateFileContent {
805805
)?)
806806
}
807807

808+
#[allow(clippy::suspicious)]
808809
pub(crate) async fn store(
809810
&self,
810811
header_cid: Cid,

0 commit comments

Comments
 (0)