mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
clippy fixes
This commit is contained in:
parent
48f9331b0d
commit
d359fabe7b
4 changed files with 5 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ impl TreeItemInfo {
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|folding| folding.as_path(),
|
PathBuf::as_path,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ impl ExternalEditorComponent {
|
||||||
let remainder = remainder_str.split_whitespace();
|
let remainder = remainder_str.split_whitespace();
|
||||||
|
|
||||||
let mut args: Vec<&OsStr> =
|
let mut args: Vec<&OsStr> =
|
||||||
remainder.map(|s| OsStr::new(s)).collect();
|
remainder.map(OsStr::new).collect();
|
||||||
|
|
||||||
args.push(path.as_os_str());
|
args.push(path.as_os_str());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -229,8 +229,8 @@ fn draw<B: Backend>(
|
||||||
terminal.resize(terminal.size()?)?;
|
terminal.resize(terminal.size()?)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
terminal.draw(|mut f| {
|
terminal.draw(|f| {
|
||||||
if let Err(e) = app.draw(&mut f) {
|
if let Err(e) = app.draw(f) {
|
||||||
log::error!("failed to draw: {:?}", e);
|
log::error!("failed to draw: {:?}", e);
|
||||||
}
|
}
|
||||||
})?;
|
})?;
|
||||||
|
|
|
||||||
|
|
@ -224,9 +224,7 @@ impl Status {
|
||||||
let ids = format!(
|
let ids = format!(
|
||||||
"({})",
|
"({})",
|
||||||
ids.iter()
|
ids.iter()
|
||||||
.map(|id| sync::CommitId::get_short_string(
|
.map(sync::CommitId::get_short_string)
|
||||||
id
|
|
||||||
))
|
|
||||||
.join(",")
|
.join(",")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue