]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-test.rs
Auto merge of #10053 - naosense:fix_9933, r=xFrednet
[rust.git] / tests / compile-test.rs
index fa769222d1af379ed5b737ebd25dbdd37cb87267..c10ee969c014620b996dafa32d94367d10db825a 100644 (file)
@@ -283,7 +283,7 @@ fn run_tests(
                 env::set_current_dir(&src_path)?;
 
                 let cargo_toml_path = case.path().join("Cargo.toml");
-                let cargo_content = fs::read(&cargo_toml_path)?;
+                let cargo_content = fs::read(cargo_toml_path)?;
                 let cargo_parsed: toml::Value = toml::from_str(
                     std::str::from_utf8(&cargo_content).expect("`Cargo.toml` is not a valid utf-8 file!"),
                 )