mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Fix some clippy lints
This commit is contained in:
parent
978b140781
commit
c9f448a834
2 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ impl SourceAnalyzer {
|
|||
.and_then(|adjusts| adjusts.last().map(|adjust| adjust.target.clone()));
|
||||
let ty = infer[expr_id].clone();
|
||||
let mk_ty = |ty| Type::new_with_resolver(db, &self.resolver, ty);
|
||||
mk_ty(ty.clone()).zip(Some(coerced.and_then(mk_ty)))
|
||||
mk_ty(ty).zip(Some(coerced.and_then(mk_ty)))
|
||||
}
|
||||
|
||||
pub(crate) fn type_of_pat(
|
||||
|
@ -145,7 +145,7 @@ impl SourceAnalyzer {
|
|||
.and_then(|adjusts| adjusts.last().map(|adjust| adjust.target.clone()));
|
||||
let ty = infer[pat_id].clone();
|
||||
let mk_ty = |ty| Type::new_with_resolver(db, &self.resolver, ty);
|
||||
mk_ty(ty.clone()).zip(Some(coerced.and_then(mk_ty)))
|
||||
mk_ty(ty).zip(Some(coerced.and_then(mk_ty)))
|
||||
}
|
||||
|
||||
pub(crate) fn type_of_self(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue