We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01caf8 commit c0dcc2cCopy full SHA for c0dcc2c
Cargo.toml
@@ -8,6 +8,6 @@ name = "objc_foundation"
8
9
[dependencies]
10
libc = "0.1"
11
+block = "0.1"
12
objc = "0.1"
13
objc_id = "0.0"
-block = "0.0"
src/data.rs
@@ -43,8 +43,8 @@ pub trait INSData : INSObject {
43
// Recreate the Vec and let it drop
44
let _ = Vec::from_raw_parts(bytes as *mut u8, len, capacity);
45
});
46
- let mut dealloc = dealloc.copy();
47
- let dealloc: &mut Block<(*mut c_void, usize), ()> = &mut dealloc;
+ let dealloc = dealloc.copy();
+ let dealloc: &Block<(*mut c_void, usize), ()> = &dealloc;
48
49
let mut bytes = bytes;
50
let cls = Self::class();
0 commit comments