don't clone Copy types
This commit is contained in:
parent
35a99eef32
commit
fec9e9ecf1
11 changed files with 16 additions and 16 deletions
|
@ -127,7 +127,7 @@ impl<'tcx> Queries<'tcx> {
|
|||
|
||||
pub fn register_plugins(&self) -> Result<&Query<(ast::Crate, Lrc<LintStore>)>> {
|
||||
self.register_plugins.compute(|| {
|
||||
let crate_name = self.crate_name()?.peek().clone();
|
||||
let crate_name = *self.crate_name()?.peek();
|
||||
let krate = self.parse()?.take();
|
||||
|
||||
let empty: &(dyn Fn(&Session, &mut LintStore) + Sync + Send) = &|_, _| {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue