Skip to content

Commit 71eb6e8

Browse files
committed
Fix clippy lints.
1 parent 222be58 commit 71eb6e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn is_modified(repo: &git2::Repository, output_path: &str) -> anyhow::Result<boo
1313
match repo.status_file(Path::new(output_path)) {
1414
Ok(status) => Ok(status.is_wt_modified()),
1515
Err(e) if e.code() == git2::ErrorCode::NotFound => Ok(false),
16-
Err(e) => Err(e).with_context(|| format!("git file status failed for {}", output_path)),
16+
Err(e) => Err(e).with_context(|| format!("git file status failed for {output_path}")),
1717
}
1818
}
1919

@@ -88,7 +88,7 @@ fn main() -> anyhow::Result<()> {
8888
let mut output_differences = 0;
8989
for output_path in output_paths {
9090
if !check {
91-
println!("generating {}", output_path);
91+
println!("generating {output_path}");
9292
}
9393

9494
let context = output_pairs.get(output_path).unwrap();
@@ -128,7 +128,7 @@ fn main() -> anyhow::Result<()> {
128128
}
129129

130130
if stdout {
131-
print!("{}", output_str);
131+
print!("{output_str}");
132132
continue;
133133
}
134134

0 commit comments

Comments
 (0)