Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlie Davis committed Jun 6, 2024
1 parent 2ebc95d commit 71a1a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tests/standalone/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ fn riddle(output: &str, filter: &[&str], config: &[&str]) {
.unwrap_or_else(|_| panic!("Expected OUT_DIR environment variable to be set.")),
);
let temp_filename = output.replace('/', "_");
let temp_output = out_dir.join(&temp_filename);
let temp_output = out_dir.join(temp_filename);

let mut args: Vec<String> = vec![
"--in".to_owned(),
Expand Down Expand Up @@ -246,7 +246,7 @@ fn riddle(output: &str, filter: &[&str], config: &[&str]) {
panic!("Failed to read file: {}: {e:?}", temp_output.display());
});

let needs_update = match std::fs::read_to_string(&output) {
let needs_update = match std::fs::read_to_string(output) {
Ok(old_contents) => {
if old_contents == new_contents {
println!("contents are same");
Expand Down

0 comments on commit 71a1a5a

Please sign in to comment.