We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30d38e8 commit f45c33dCopy full SHA for f45c33d
crates/icrate/tests/mutable_data.rs
@@ -81,7 +81,12 @@ fn test_as_ref_borrow() {
81
fn impls_borrow<T: AsRef<U> + Borrow<U> + ?Sized, U: ?Sized>(_: &T) {}
82
fn impls_borrow_mut<T: AsMut<U> + BorrowMut<U> + ?Sized, U: ?Sized>(_: &mut T) {}
83
84
- let mut obj = NSMutableData::new();
+ // TODO: For some reason `new` doesn't work on GNUStep in release mode?
85
+ let mut obj = if cfg!(feature = "gnustep-1-8") {
86
+ NSMutableData::with_bytes(&[])
87
+ } else {
88
+ NSMutableData::new()
89
+ };
90
impls_borrow::<Id<NSMutableData>, NSMutableData>(&obj);
91
impls_borrow_mut::<Id<NSMutableData>, NSMutableData>(&mut obj);
92
0 commit comments