mirror of
https://github.com/gitui-org/gitui
synced 2026-05-22 16:38:28 +00:00
fix nightly clippy
This commit is contained in:
parent
282e578ac3
commit
a4943224bd
2 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue