Skip to content

Commit 7eb0416

Browse files
committed
Fix clippy warnings
1 parent 3541668 commit 7eb0416

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_gcc/src

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl CodegenBackend for GccCodegenBackend {
215215
// invalid.
216216
// This is the case for instance in Rust for Linux where they specify --sysroot=/dev/null.
217217
for path in sess.opts.sysroot.all_paths() {
218-
let libgccjit_target_lib_file = file_path(path, &sess);
218+
let libgccjit_target_lib_file = file_path(path, sess);
219219
if let Ok(true) = fs::exists(&libgccjit_target_lib_file) {
220220
load_libgccjit_if_needed(&libgccjit_target_lib_file);
221221
break;
@@ -225,7 +225,7 @@ impl CodegenBackend for GccCodegenBackend {
225225
if !gccjit::is_loaded() {
226226
let mut paths = vec![];
227227
for path in sess.opts.sysroot.all_paths() {
228-
let libgccjit_target_lib_file = file_path(path, &sess);
228+
let libgccjit_target_lib_file = file_path(path, sess);
229229
paths.push(libgccjit_target_lib_file);
230230
}
231231

0 commit comments

Comments
 (0)