We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2a0b7 commit ea0014cCopy full SHA for ea0014c
crates/hir_ty/src/infer/closure.rs
@@ -75,10 +75,7 @@ impl InferenceContext<'_> {
75
safety: chalk_ir::Safety::Safe,
76
variadic: false,
77
},
78
- substitution: FnSubst(Substitution::from_iter(
79
- &Interner,
80
- sig_tys.clone(),
81
- )),
+ substitution: FnSubst(Substitution::from_iter(&Interner, sig_tys)),
82
});
83
}
84
crates/rust-analyzer/src/main_loop.rs
@@ -636,7 +636,7 @@ impl GlobalState {
636
let mut text = String::from_utf8(vfs.file_contents(file_id).to_vec()).unwrap();
637
apply_document_changes(&mut text, params.content_changes);
638
639
- vfs.set_file_contents(path.clone(), Some(text.into_bytes()));
+ vfs.set_file_contents(path, Some(text.into_bytes()));
640
641
Ok(())
642
})?
0 commit comments