Skip to content

Commit e92d67a

Browse files
committed
Remove unnecessary duplicate bounds on NS[Mutable]Copying traits
These Sized bounds are already added by the extern_protocol! macro
1 parent 4ec5b64 commit e92d67a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/icrate/src/fixes/Foundation/copying.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ extern_protocol!(
2222
#[optional]
2323
fn copy(&self) -> Id<Self::Immutable>
2424
where
25-
Self: Sized,
2625
Self: CounterpartOrSelf;
2726

2827
/// Returns a new instance that's a copy of the receiver.
@@ -37,7 +36,6 @@ extern_protocol!(
3736
#[method_id(copyWithZone:)]
3837
unsafe fn copyWithZone(&self, zone: *mut NSZone) -> Id<Self::Immutable>
3938
where
40-
Self: Sized,
4139
Self: CounterpartOrSelf;
4240
}
4341

@@ -65,7 +63,6 @@ extern_protocol!(
6563
#[optional]
6664
fn mutableCopy(&self) -> Id<Self::Mutable>
6765
where
68-
Self: Sized,
6966
Self: CounterpartOrSelf;
7067

7168
/// Returns a new instance that's a mutable copy of the receiver.
@@ -80,7 +77,6 @@ extern_protocol!(
8077
#[method_id(mutableCopyWithZone:)]
8178
unsafe fn mutableCopyWithZone(&self, zone: *mut NSZone) -> Id<Self::Mutable>
8279
where
83-
Self: Sized,
8480
Self: CounterpartOrSelf;
8581
}
8682

0 commit comments

Comments
 (0)