Skip to content

Commit c0c12b8

Browse files
committed
Undo noise
1 parent 3301291 commit c0c12b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
3333
rustc_output("-vV")?
3434
.lines()
3535
.find_map(|l| l.strip_prefix("commit-hash: "))
36-
.map(|s| s.to_string())
36+
.map(ToString::to_string)
3737
.ok_or_else(|| "`commit-hash` not found in `rustc -vV` output".into())
3838
}
3939

4040
fn get_required_commit_hash() -> Result<String, Box<dyn Error>> {
4141
REQUIRED_RUST_TOOLCHAIN
4242
.lines()
4343
.find_map(|l| l.strip_prefix("# commit_hash = "))
44-
.map(|s| s.to_string())
44+
.map(ToString::to_string)
4545
.ok_or_else(|| "`commit_hash` not found in `rust-toolchain.toml`".into())
4646
}
4747

@@ -77,11 +77,11 @@ fn check_toolchain_version() -> Result<(), Box<dyn Error>> {
7777
.unwrap_or_default();
7878

7979
return Err(format!(
80-
r#"error: wrong toolchain detected (found commit hash `{current_hash}`, expected `{required_hash}`).
80+
"error: wrong toolchain detected (found commit hash `{current_hash}`, expected `{required_hash}`).
8181
Make sure your `rust-toolchain.toml` file contains the following:
8282
-------------
8383
{stripped_toolchain}
84-
-------------"#
84+
-------------"
8585
).into());
8686
}
8787
}

0 commit comments

Comments
 (0)