1
Fork 0

Rollup merge of #130250 - compiler-errors:useless-conversion, r=jieyouxu

Fix `clippy::useless_conversion`

Self-explanatory. Probably the last clippy change I'll actually put up since this is the only other one I've actually seen in the wild.
This commit is contained in:
Stuart Cook 2024-09-12 20:37:17 +10:00 committed by GitHub
commit 57020e0f8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 20 additions and 28 deletions

View file

@ -883,7 +883,6 @@ where
.into_iter()
.chain(a_data.principal_def_id().into_iter().flat_map(|principal_def_id| {
elaborate::supertrait_def_ids(self.cx(), principal_def_id)
.into_iter()
.filter(|def_id| self.cx().trait_is_auto(*def_id))
}))
.collect();