Skip to content

Commit

Permalink
fix nightly clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Nov 5, 2022
1 parent 282e578 commit a494322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filetreelist/src/filetreeitems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down

0 comments on commit a494322

Please sign in to comment.