mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
Address clippy issues (#2718)
This commit is contained in:
parent
60912c0b47
commit
047f1402de
1 changed files with 6 additions and 2 deletions
|
|
@ -146,7 +146,11 @@ impl HookPaths {
|
|||
S: AsRef<OsStr>,
|
||||
{
|
||||
let hook = self.hook.clone();
|
||||
log::trace!("run hook '{:?}' in '{:?}'", hook, self.pwd);
|
||||
log::trace!(
|
||||
"run hook '{}' in '{}'",
|
||||
hook.display(),
|
||||
self.pwd.display()
|
||||
);
|
||||
|
||||
let run_command = |command: &mut Command| {
|
||||
command
|
||||
|
|
@ -250,7 +254,7 @@ fn is_executable(path: &Path) -> bool {
|
|||
let metadata = match path.metadata() {
|
||||
Ok(metadata) => metadata,
|
||||
Err(e) => {
|
||||
log::error!("metadata error: {}", e);
|
||||
log::error!("metadata error: {e}");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue