Skip to content

Commit c8194e5

Browse files
committed
Update objc2 to v0.3.0-beta.4
1 parent 7d593d0 commit c8194e5

File tree

8 files changed

+19
-22
lines changed

8 files changed

+19
-22
lines changed

cocoa-foundation/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ license = "MIT OR Apache-2.0"
1212
default-target = "x86_64-apple-darwin"
1313

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.6", package = "block2" }
15+
block = { version = "=0.2.0-alpha.7", package = "block2" }
1616
bitflags = "1.0"
1717
libc = "0.2"
1818
core-foundation = { path = "../core-foundation", version = "0.9" }
1919
core-graphics-types = { path = "../core-graphics-types", version = "0.1" }
20-
objc2 = { version = "=0.3.0-beta.2" }
21-
objc2-encode = { version = "=2.0.0-pre.2" }
20+
objc2 = { version = "=0.3.0-beta.4" }
21+
objc2-encode = { version = "=2.0.0-pre.3" }

cocoa-foundation/src/foundation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use base::{id, nil, BOOL, NO, SEL};
1313
use block::Block;
1414
use libc;
15-
use objc2_encode::{Encode, Encoding, RefEncode};
15+
use objc2::encode::{Encode, Encoding, RefEncode};
1616
use std::os::raw::c_void;
1717
use std::ptr;
1818

@@ -36,7 +36,7 @@ mod macos {
3636
use base::id;
3737
use core_graphics_types::base::CGFloat;
3838
use core_graphics_types::geometry::CGRect;
39-
use objc2_encode::{Encode, Encoding};
39+
use objc2::encode::{Encode, Encoding};
4040
use std::mem;
4141

4242
#[repr(C)]

cocoa/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ license = "MIT OR Apache-2.0"
1212
default-target = "x86_64-apple-darwin"
1313

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.6", package = "block2" }
15+
block = { version = "=0.2.0-alpha.7", package = "block2" }
1616
bitflags = "1.0"
1717
libc = "0.2"
1818
cocoa-foundation = { path = "../cocoa-foundation", version = "0.1" }
1919
core-foundation = { path = "../core-foundation", version = "0.9" }
2020
core-graphics = { path = "../core-graphics", version = "0.23" }
2121
foreign-types = "0.5"
22-
objc2 = { version = "=0.3.0-beta.2" }
23-
objc2-encode = { version = "=2.0.0-pre.2" }
22+
objc2 = { version = "=0.3.0-beta.4" }

cocoa/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extern crate core_foundation;
2020
extern crate core_graphics;
2121
extern crate foreign_types;
2222
extern crate libc;
23-
extern crate objc2_encode;
2423
#[macro_use]
2524
extern crate objc2;
2625

cocoa/src/quartzcore.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use core_graphics::context::CGContext;
2121
use core_graphics::geometry::{CGAffineTransform, CGPoint, CGRect, CGSize};
2222
use core_graphics::path::{CGPath, SysCGPathRef};
2323
use foreign_types::ForeignType;
24+
use objc2::encode::{Encode, Encoding, RefEncode};
2425
use std::ops::Mul;
2526
use std::ptr;
2627

@@ -1485,9 +1486,8 @@ pub struct CATransform3D {
14851486
pub m44: CGFloat,
14861487
}
14871488

1488-
unsafe impl ::objc2_encode::Encode for CATransform3D {
1489-
const ENCODING: ::objc2_encode::Encoding =
1490-
::objc2_encode::Encoding::Array(16, &CGFloat::ENCODING);
1489+
unsafe impl Encode for CATransform3D {
1490+
const ENCODING: Encoding = Encoding::Array(16, &CGFloat::ENCODING);
14911491
}
14921492

14931493
impl PartialEq for CATransform3D {
@@ -1641,8 +1641,8 @@ pub struct CVTimeStamp {
16411641
pub reserved: u64,
16421642
}
16431643

1644-
unsafe impl ::objc2_encode::Encode for CVTimeStamp {
1645-
const ENCODING: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Struct(
1644+
unsafe impl Encode for CVTimeStamp {
1645+
const ENCODING: Encoding = Encoding::Struct(
16461646
"CVTimeStamp",
16471647
&[
16481648
u32::ENCODING,
@@ -1658,9 +1658,8 @@ unsafe impl ::objc2_encode::Encode for CVTimeStamp {
16581658
);
16591659
}
16601660

1661-
unsafe impl ::objc2_encode::RefEncode for CVTimeStamp {
1662-
const ENCODING_REF: ::objc2_encode::Encoding =
1663-
::objc2_encode::Encoding::Pointer(&<Self as ::objc2_encode::Encode>::ENCODING);
1661+
unsafe impl RefEncode for CVTimeStamp {
1662+
const ENCODING_REF: Encoding = Encoding::Pointer(&<Self as Encode>::ENCODING);
16641663
}
16651664

16661665
pub type CVTimeStampFlags = u64;
@@ -1691,8 +1690,8 @@ pub struct CVSMPTETime {
16911690
pub frames: i16,
16921691
}
16931692

1694-
unsafe impl ::objc2_encode::Encode for CVSMPTETime {
1695-
const ENCODING: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Struct(
1693+
unsafe impl Encode for CVSMPTETime {
1694+
const ENCODING: Encoding = Encoding::Struct(
16961695
"CVSMPTETime",
16971696
&[
16981697
i16::ENCODING,

core-foundation-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["The Servo Project Developers"]
88
license = "MIT OR Apache-2.0"
99

1010
[dependencies]
11-
objc2-encode = { version = "=2.0.0-pre.2" }
11+
objc2-encode = { version = "=2.0.0-pre.3" }
1212

1313
[features]
1414
mac_os_10_7_support = [] # backwards compatibility

core-graphics-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
bitflags = "1.0"
1212
core-foundation = { path = "../core-foundation", version = "0.9" }
1313
libc = "0.2"
14-
objc2-encode = { version = "=2.0.0-pre.2" }
14+
objc2-encode = { version = "=2.0.0-pre.3" }
1515

1616
[package.metadata.docs.rs]
1717
default-target = "x86_64-apple-darwin"

core-graphics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ core-foundation = { path = "../core-foundation", version = "0.9" }
1818
core-graphics-types = { path = "../core-graphics-types", version = "0.1" }
1919
foreign-types = "0.5.0"
2020
libc = "0.2"
21-
objc2-encode = { version = "=2.0.0-pre.2" }
21+
objc2-encode = { version = "=2.0.0-pre.3" }
2222

2323
[package.metadata.docs.rs]
2424
default-target = "x86_64-apple-darwin"

0 commit comments

Comments
 (0)