mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-27 11:03:03 +03:00
fix nightly clippy
This commit is contained in:
parent
282e578ac3
commit
a4943224bd
@ -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 {
|
||||
|
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user