fix nightly clippy

This commit is contained in:
extrawurst 2022-11-05 16:33:41 +01:00
parent 282e578ac3
commit a4943224bd
2 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,8 @@ impl FileTreeItems {
let item_path = let item_path =
Path::new(item.info().full_path_str()); 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) { if item_path.starts_with(&path) {
item.hide(); item.hide();
} else { } else {

View File

@ -131,6 +131,8 @@ impl Options {
Ok(from_bytes(&buffer)?) Ok(from_bytes(&buffer)?)
} }
//TODO: fix once FP in clippy is fixed
#[allow(clippy::needless_borrow)]
fn save_failable(&self) -> Result<()> { fn save_failable(&self) -> Result<()> {
let dir = Self::options_file(&self.repo)?; let dir = Self::options_file(&self.repo)?;