File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/rustc_codegen_spirv Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
4040fn 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}`).
8181Make sure your `rust-toolchain.toml` file contains the following:
8282-------------
8383{stripped_toolchain}
84- -------------"#
84+ -------------"
8585 ) . into ( ) ) ;
8686 }
8787 }
You can’t perform that action at this time.
0 commit comments