From a4943224bd712969943a4f8ca0ebc7e63bed0768 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Sat, 5 Nov 2022 16:33:41 +0100 Subject: [PATCH] fix nightly clippy --- filetreelist/src/filetreeitems.rs | 2 ++ src/options.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/filetreelist/src/filetreeitems.rs b/filetreelist/src/filetreeitems.rs index 18c4bfd0cf..6579988d0d 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 f51e4501e8..a10bea3901 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)?;