Skip to content

Commit 6850b60

Browse files
committed
Fix Rust 1.88 warnings
1 parent c016070 commit 6850b60

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

rustdoc-json/tests/rustdoc-json-lib-tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ fn capture_output() {
124124

125125
assert!(
126126
stderr.contains("error: this file contains an unclosed delimiter"),
127-
"Got stderr: {}",
128-
stderr,
127+
"Got stderr: {stderr}",
129128
);
130129
}

scripts/release-helper/src/bin/update-version-info/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ fn insert_file_contents_in_between(
7777
new_text_in_middle: &str,
7878
existing_end_text: &str,
7979
) {
80-
println!(
81-
"Updating {} by inserting:\n{}\n",
82-
source_file_path, new_text_in_middle
83-
);
80+
println!("Updating {source_file_path} by inserting:\n{new_text_in_middle}\n");
8481
let contents = std::fs::read_to_string(source_file_path).unwrap();
8582

8683
let start_index = contents.find(existing_start_text).unwrap();
@@ -89,6 +86,6 @@ fn insert_file_contents_in_between(
8986
let start = contents[..start_index + existing_start_text.len()].to_string();
9087
let end = contents[end_index..].to_string();
9188

92-
let new_contents = format!("{}{}{}", start, new_text_in_middle, end);
89+
let new_contents = format!("{start}{new_text_in_middle}{end}");
9390
std::fs::write(source_file_path, new_contents.clone()).unwrap();
9491
}

0 commit comments

Comments
 (0)