mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
fix clippy::useless_conversion
This commit is contained in:
parent
451fcd3c79
commit
62ed658311
11 changed files with 25 additions and 29 deletions
|
@ -1059,7 +1059,7 @@ pub(crate) fn generic_predicates_for_param_query(
|
|||
| WherePredicate::TypeBound { target, bound, .. } => {
|
||||
match target {
|
||||
WherePredicateTypeTarget::TypeRef(type_ref) => {
|
||||
if ctx.lower_ty_only_param(type_ref) != Some(param_id.into()) {
|
||||
if ctx.lower_ty_only_param(type_ref) != Some(param_id) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue