don't redundantly repeat field names (clippy::redundant_field_names)
This commit is contained in:
parent
5566a1cee4
commit
3b4c2f67ad
3 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ pub type NormalizedTy<'tcx> = Normalized<'tcx, Ty<'tcx>>;
|
|||
|
||||
impl<'tcx, T> Normalized<'tcx, T> {
|
||||
pub fn with<U>(self, value: U) -> Normalized<'tcx, U> {
|
||||
Normalized { value: value, obligations: self.obligations }
|
||||
Normalized { value, obligations: self.obligations }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ struct PredicateSet<'tcx> {
|
|||
|
||||
impl PredicateSet<'tcx> {
|
||||
fn new(tcx: TyCtxt<'tcx>) -> Self {
|
||||
Self { tcx: tcx, set: Default::default() }
|
||||
Self { tcx, set: Default::default() }
|
||||
}
|
||||
|
||||
fn insert(&mut self, pred: &ty::Predicate<'tcx>) -> bool {
|
||||
|
|
|
|||
|
|
@ -2792,7 +2792,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
trait_def_id, trait_obligations
|
||||
);
|
||||
|
||||
VtableTraitAliasData { alias_def_id, substs: substs, nested: trait_obligations }
|
||||
VtableTraitAliasData { alias_def_id, substs, nested: trait_obligations }
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue