diff options
author | extrawurst <mail@rusticorn.com> | 2022-11-05 16:33:41 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2022-11-05 16:33:48 +0100 |
commit | a4943224bd712969943a4f8ca0ebc7e63bed0768 (patch) | |
tree | e636dc7cc55f8db0cfa6827a78d1b802853fee95 | |
parent | 282e578ac38ff67b1f48df515fecb62ac08a196c (diff) |
fix nightly clippy
-rw-r--r-- | filetreelist/src/filetreeitems.rs | 2 | ||||
-rw-r--r-- | src/options.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/filetreelist/src/filetreeitems.rs b/filetreelist/src/filetreeitems.rs index 18c4bfd0..6579988d 100644 --- a/filetreelist/src/filetreeitems.rs +++ b/filetreelist/src/filetreeitems.rs @@ -145,6 +145,8 @@ impl FileTreeItems { let item_path = Path::new(item.info().full_path_str()); + //TODO: fix once FP in clippy is fixed + #[allow(clippy::needless_borrow)] if item_path.starts_with(&path) { item.hide(); } else { diff --git a/src/options.rs b/src/options.rs index f51e4501..a10bea39 100644 --- a/src/options.rs +++ b/src/options.rs @@ -131,6 +131,8 @@ impl Options { Ok(from_bytes(&buffer)?) } + //TODO: fix once FP in clippy is fixed + #[allow(clippy::needless_borrow)] fn save_failable(&self) -> Result<()> { let dir = Self::options_file(&self.repo)?; |