compiler: clippy::complexity fixes
useless_format map_flatten useless_conversion needless_bool filter_next clone_on_copy needless_option_as_deref
This commit is contained in:
parent
4e8fb743cc
commit
b80057d08d
22 changed files with 39 additions and 45 deletions
|
@ -957,7 +957,7 @@ fn opt_normalize_projection_type<'a, 'b, 'tcx>(
|
|||
infcx.inner.borrow_mut().projection_cache().insert_term(cache_key, result.clone());
|
||||
}
|
||||
obligations.extend(result.obligations);
|
||||
Ok(Some(result.value.into()))
|
||||
Ok(Some(result.value))
|
||||
}
|
||||
Ok(Projected::NoProgress(projected_ty)) => {
|
||||
let result = Normalized { value: projected_ty, obligations: vec![] };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue