Skip to content

Commit a494322

Browse files
committed
fix nightly clippy
1 parent 282e578 commit a494322

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

filetreelist/src/filetreeitems.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ impl FileTreeItems {
145145
let item_path =
146146
Path::new(item.info().full_path_str());
147147

148+
//TODO: fix once FP in clippy is fixed
149+
#[allow(clippy::needless_borrow)]
148150
if item_path.starts_with(&path) {
149151
item.hide();
150152
} else {

src/options.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ impl Options {
131131
Ok(from_bytes(&buffer)?)
132132
}
133133

134+
//TODO: fix once FP in clippy is fixed
135+
#[allow(clippy::needless_borrow)]
134136
fn save_failable(&self) -> Result<()> {
135137
let dir = Self::options_file(&self.repo)?;
136138

0 commit comments

Comments
 (0)