Skip to content

Commit

Permalink
More clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslueg committed Feb 8, 2023
1 parent 505fc4e commit b9dddf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example_project/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
}

match built_info::GIT_HEAD_REF {
Some(r) => println!(" The branch was `{}`.\n", r),
Some(r) => println!(" The branch was `{r}`.\n"),
None => println!("\n"),
}

Expand All @@ -48,7 +48,7 @@ fn main() {

match built_info::CI_PLATFORM {
None => print!("It seems I've not been built on a continuous integration platform,"),
Some(ci) => print!("I've been built on CI-platform {},", ci),
Some(ci) => print!("I've been built on CI-platform {ci},"),
}
if built::util::detect_ci().is_some() {
println!(" but I'm currently executing on one!\n");
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ mod tests {

let commit_oid_short = binding.as_str().unwrap();

let commit_hash = format!("{}", commit_oid);
let commit_hash = format!("{commit_oid}");
let commit_hash_short = commit_oid_short.to_string();

assert!(commit_hash.starts_with(&commit_hash_short));
Expand Down Expand Up @@ -1155,7 +1155,7 @@ mod tests {

let commit_oid_short = binding.as_str().unwrap();

let commit_hash = format!("{}", commit_oid);
let commit_hash = format!("{commit_oid}");
let commit_hash_short = commit_oid_short.to_string();

assert!(commit_hash.starts_with(&commit_hash_short));
Expand Down

0 comments on commit b9dddf4

Please sign in to comment.