Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 047f140

Browse files
Address clippy issues (#2718)
1 parent 60912c0 commit 047f140

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎git2-hooks/src/hookspath.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ impl HookPaths {
146146
S: AsRef<OsStr>,
147147
{
148148
let hook = self.hook.clone();
149-
log::trace!("run hook '{:?}' in '{:?}'", hook, self.pwd);
149+
log::trace!(
150+
"run hook '{}' in '{}'",
151+
hook.display(),
152+
self.pwd.display()
153+
);
150154

151155
let run_command = |command: &mut Command| {
152156
command
@@ -250,7 +254,7 @@ fn is_executable(path: &Path) -> bool {
250254
let metadata = match path.metadata() {
251255
Ok(metadata) => metadata,
252256
Err(e) => {
253-
log::error!("metadata error: {}", e);
257+
log::error!("metadata error: {e}");
254258
return false;
255259
}
256260
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /