File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4252,7 +4252,6 @@ impl Ty {
42524252 }
42534253 }
42544254
4255- #[ allow( unused, clippy:: only_used_in_recursion) ]
42564255 fn change_generics ( & mut self , new : & [ ItemGeneric ] ) {
42574256 fn to_cf ( generic : & ItemGeneric ) -> PointeeTy {
42584257 PointeeTy :: CFTypeDef {
@@ -4269,8 +4268,7 @@ impl Ty {
42694268 Ty :: Pointer { pointee, .. } => pointee. change_generics ( new) ,
42704269 Ty :: Pointee ( pointee) => match pointee {
42714270 PointeeTy :: CFTypeDef { generics, .. } => {
4272- // TODO(breaking): Enable this to actually do the overrides
4273- // *generics = new.iter().map(to_cf).collect();
4271+ * generics = new. iter ( ) . map ( to_cf) . collect ( ) ;
42744272 }
42754273 ty => error ! ( ?ty, "unsupported type for generics attribute" ) ,
42764274 } ,
You can’t perform that action at this time.
0 commit comments