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