diff --git a/objc2_block/Cargo.toml b/objc2_block/Cargo.toml index cc17ad88b..046b02fac 100644 --- a/objc2_block/Cargo.toml +++ b/objc2_block/Cargo.toml @@ -25,4 +25,4 @@ exclude = [ objc2_encode = { path = "../objc2_encode" } [dev-dependencies] -objc_test_utils = { path = "../objc2_test_utils", version = "0.0" } +objc2_test_utils = { path = "../objc2_test_utils" } diff --git a/objc2_block/src/test_utils.rs b/objc2_block/src/test_utils.rs index 71632bda5..f9ae5f5b6 100644 --- a/objc2_block/src/test_utils.rs +++ b/objc2_block/src/test_utils.rs @@ -1,27 +1,25 @@ -use objc_test_utils; - use crate::{Block, RcBlock}; pub fn get_int_block_with(i: i32) -> RcBlock<(), i32> { unsafe { - let ptr = objc_test_utils::get_int_block_with(i); + let ptr = objc2_test_utils::get_int_block_with(i); RcBlock::new(ptr as *mut _) } } pub fn get_add_block_with(i: i32) -> RcBlock<(i32,), i32> { unsafe { - let ptr = objc_test_utils::get_add_block_with(i); + let ptr = objc2_test_utils::get_add_block_with(i); RcBlock::new(ptr as *mut _) } } pub fn invoke_int_block(block: &Block<(), i32>) -> i32 { let ptr = block as *const _; - unsafe { objc_test_utils::invoke_int_block(ptr as *mut _) } + unsafe { objc2_test_utils::invoke_int_block(ptr as *mut _) } } pub fn invoke_add_block(block: &Block<(i32,), i32>, a: i32) -> i32 { let ptr = block as *const _; - unsafe { objc_test_utils::invoke_add_block(ptr as *mut _, a) } + unsafe { objc2_test_utils::invoke_add_block(ptr as *mut _, a) } } diff --git a/objc2_test_utils/Cargo.toml b/objc2_test_utils/Cargo.toml index 6c4035af9..aea262997 100644 --- a/objc2_test_utils/Cargo.toml +++ b/objc2_test_utils/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "objc_test_utils" +name = "objc2_test_utils" version = "0.0.2" authors = ["Steven Sheldon", "Mads Marquart "] edition = "2018" @@ -13,7 +13,7 @@ categories = [ "os::macos-apis", ] repository = "https://github.com/madsmtm/objc2" -documentation = "https://docs.rs/objc_test_utils/" +documentation = "https://docs.rs/objc2_test_utils/" license = "MIT" build = "build.rs"