Skip to content

Commit 6fab6d9

Browse files
committed
style: Inline fmt args
1 parent 93e06c1 commit 6fab6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult {
9797
writeln!(
9898
stdout,
9999
"{}",
100-
Styled::new(format_args!("Message: {}", message), style)
100+
Styled::new(format_args!("Message: {message}"), style)
101101
)
102102
.with_code(proc_exit::Code::FAILURE)?;
103103
}
@@ -125,7 +125,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult {
125125
writeln!(
126126
stdout,
127127
"{}",
128-
Styled::new(format_args!("- {}: {}", name, summary), style),
128+
Styled::new(format_args!("- {name}: {summary}"), style),
129129
)
130130
.with_code(proc_exit::Code::FAILURE)?;
131131
}

0 commit comments

Comments
 (0)