Skip to content

Commit f088bea

Browse files
committed
Enable signature fixes
1 parent 51096d3 commit f088bea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/header-translator/src/rust_type.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)