mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-26 18:43:37 +03:00
clippy fixes
This commit is contained in:
parent
48f9331b0d
commit
d359fabe7b
@ -63,7 +63,7 @@ impl TreeItemInfo {
|
||||
.unwrap_or_default(),
|
||||
)
|
||||
},
|
||||
|folding| folding.as_path(),
|
||||
PathBuf::as_path,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ impl ExternalEditorComponent {
|
||||
let remainder = remainder_str.split_whitespace();
|
||||
|
||||
let mut args: Vec<&OsStr> =
|
||||
remainder.map(|s| OsStr::new(s)).collect();
|
||||
remainder.map(OsStr::new).collect();
|
||||
|
||||
args.push(path.as_os_str());
|
||||
|
||||
|
@ -229,8 +229,8 @@ fn draw<B: Backend>(
|
||||
terminal.resize(terminal.size()?)?;
|
||||
}
|
||||
|
||||
terminal.draw(|mut f| {
|
||||
if let Err(e) = app.draw(&mut f) {
|
||||
terminal.draw(|f| {
|
||||
if let Err(e) = app.draw(f) {
|
||||
log::error!("failed to draw: {:?}", e);
|
||||
}
|
||||
})?;
|
||||
|
@ -224,9 +224,7 @@ impl Status {
|
||||
let ids = format!(
|
||||
"({})",
|
||||
ids.iter()
|
||||
.map(|id| sync::CommitId::get_short_string(
|
||||
id
|
||||
))
|
||||
.map(sync::CommitId::get_short_string)
|
||||
.join(",")
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user