Skip to content

Commit c0dcc2c

Browse files
committed
Update to version 0.1 of the block crate.
1 parent f01caf8 commit c0dcc2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ name = "objc_foundation"
88

99
[dependencies]
1010
libc = "0.1"
11+
block = "0.1"
1112
objc = "0.1"
1213
objc_id = "0.0"
13-
block = "0.0"

src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ pub trait INSData : INSObject {
4343
// Recreate the Vec and let it drop
4444
let _ = Vec::from_raw_parts(bytes as *mut u8, len, capacity);
4545
});
46-
let mut dealloc = dealloc.copy();
47-
let dealloc: &mut Block<(*mut c_void, usize), ()> = &mut dealloc;
46+
let dealloc = dealloc.copy();
47+
let dealloc: &Block<(*mut c_void, usize), ()> = &dealloc;
4848

4949
let mut bytes = bytes;
5050
let cls = Self::class();

0 commit comments

Comments
 (0)