Skip to content

Commit 036c3de

Browse files
committed
Update objc2 to v0.3.0-beta.2
1 parent eddc540 commit 036c3de

File tree

14 files changed

+33
-33
lines changed

14 files changed

+33
-33
lines changed

cocoa-foundation/Cargo.toml

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

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.5", package = "block2" }
15+
block = { version = "=0.2.0-alpha.6", 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" }
2020
foreign-types = "0.3"
21-
objc2 = { version = "=0.3.0-beta.1" }
22-
objc2-encode = { version = "=2.0.0-pre.1" }
21+
objc2 = { version = "=0.3.0-beta.2" }
22+
objc2-encode = { version = "=2.0.0-pre.2" }

cocoa-foundation/src/foundation.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mod macos {
5858
}
5959

6060
unsafe impl Encode for NSPoint {
61-
const ENCODING: Encoding<'static> =
61+
const ENCODING: Encoding =
6262
Encoding::Struct("CGPoint", &[CGFloat::ENCODING, CGFloat::ENCODING]);
6363
}
6464

@@ -80,7 +80,7 @@ mod macos {
8080
}
8181

8282
unsafe impl Encode for NSSize {
83-
const ENCODING: Encoding<'static> =
83+
const ENCODING: Encoding =
8484
Encoding::Struct("CGSize", &[CGFloat::ENCODING, CGFloat::ENCODING]);
8585
}
8686

@@ -116,7 +116,7 @@ mod macos {
116116
}
117117

118118
unsafe impl Encode for NSRect {
119-
const ENCODING: Encoding<'static> =
119+
const ENCODING: Encoding =
120120
Encoding::Struct("CGRect", &[NSPoint::ENCODING, NSSize::ENCODING]);
121121
}
122122

@@ -161,7 +161,7 @@ pub struct NSRange {
161161
}
162162

163163
unsafe impl Encode for NSRange {
164-
const ENCODING: Encoding<'static> =
164+
const ENCODING: Encoding =
165165
Encoding::Struct("_NSRange", &[NSUInteger::ENCODING, NSUInteger::ENCODING]);
166166
}
167167

@@ -209,7 +209,7 @@ pub struct NSOperatingSystemVersion {
209209
}
210210

211211
unsafe impl Encode for NSOperatingSystemVersion {
212-
const ENCODING: Encoding<'static> = Encoding::Struct(
212+
const ENCODING: Encoding = Encoding::Struct(
213213
"NSOperatingSystemVersion",
214214
&[
215215
NSUInteger::ENCODING,
@@ -681,7 +681,7 @@ struct NSFastEnumerationState {
681681
}
682682

683683
unsafe impl Encode for NSFastEnumerationState {
684-
const ENCODING: Encoding<'static> = Encoding::Struct(
684+
const ENCODING: Encoding = Encoding::Struct(
685685
"?",
686686
&[
687687
libc::c_ulong::ENCODING,
@@ -693,7 +693,7 @@ unsafe impl Encode for NSFastEnumerationState {
693693
}
694694

695695
unsafe impl RefEncode for NSFastEnumerationState {
696-
const ENCODING_REF: Encoding<'static> = Encoding::Pointer(&Self::ENCODING);
696+
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
697697
}
698698

699699
const NS_FAST_ENUM_BUF_SIZE: usize = 16;

cocoa-foundation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use objc2_encode as __objc2_encode;
2626
macro_rules! impl_Encode {
2727
($t:ty, $delegation:ty) => {
2828
unsafe impl $crate::__objc2_encode::Encode for $t {
29-
const ENCODING: $crate::__objc2_encode::Encoding<'static> = <$delegation>::ENCODING;
29+
const ENCODING: $crate::__objc2_encode::Encoding = <$delegation>::ENCODING;
3030
}
3131
}
3232
}

cocoa/Cargo.toml

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

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.5", package = "block2" }
15+
block = { version = "=0.2.0-alpha.6", 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.22" }
2121
foreign-types = "0.3"
22-
objc2 = { version = "=0.3.0-beta.1" }
23-
objc2-encode = { version = "=2.0.0-pre.1" }
22+
objc2 = { version = "=0.3.0-beta.2" }
23+
objc2-encode = { version = "=2.0.0-pre.2" }

cocoa/src/quartzcore.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ pub mod transaction {
16321632

16331633
#[inline]
16341634
pub fn set_completion_block<F>(block: ConcreteBlock<(), (), F>)
1635-
where F: 'static + IntoConcreteBlock<(), Ret = ()> {
1635+
where F: 'static + IntoConcreteBlock<(), Output = ()> {
16361636
unsafe {
16371637
let block = block.copy();
16381638
msg_send![class!(CATransaction), setCompletionBlock:&*block]
@@ -1668,7 +1668,7 @@ pub struct CATransform3D {
16681668
}
16691669

16701670
unsafe impl ::objc2_encode::Encode for CATransform3D {
1671-
const ENCODING: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Array(16, &CGFloat::ENCODING);
1671+
const ENCODING: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Array(16, &CGFloat::ENCODING);
16721672
}
16731673

16741674
impl PartialEq for CATransform3D {
@@ -1824,7 +1824,7 @@ pub struct CVTimeStamp {
18241824
}
18251825

18261826
unsafe impl ::objc2_encode::Encode for CVTimeStamp {
1827-
const ENCODING: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Struct(
1827+
const ENCODING: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Struct(
18281828
"CVTimeStamp",
18291829
&[
18301830
u32::ENCODING,
@@ -1841,7 +1841,7 @@ unsafe impl ::objc2_encode::Encode for CVTimeStamp {
18411841
}
18421842

18431843
unsafe impl ::objc2_encode::RefEncode for CVTimeStamp {
1844-
const ENCODING_REF: ::objc2_encode::Encoding<'static> =
1844+
const ENCODING_REF: ::objc2_encode::Encoding =
18451845
::objc2_encode::Encoding::Pointer(&<Self as ::objc2_encode::Encode>::ENCODING);
18461846
}
18471847

@@ -1874,7 +1874,7 @@ pub struct CVSMPTETime {
18741874
}
18751875

18761876
unsafe impl ::objc2_encode::Encode for CVSMPTETime {
1877-
const ENCODING: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Struct(
1877+
const ENCODING: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Struct(
18781878
"CVSMPTETime",
18791879
&[
18801880
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 / Apache-2.0"
99

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

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

core-foundation-sys/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub type CFArrayRef = *const __CFArray;
3636
pub type CFMutableArrayRef = *mut __CFArray;
3737

3838
unsafe impl ::objc2_encode::RefEncode for __CFArray {
39-
const ENCODING_REF: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Object;
39+
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
4040
}
4141

4242
extern {

core-foundation-sys/src/attributed_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub type CFAttributedStringRef = *const __CFAttributedString;
1919
pub type CFMutableAttributedStringRef = *const __CFAttributedString;
2020

2121
unsafe impl ::objc2_encode::RefEncode for __CFAttributedString {
22-
const ENCODING_REF: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Object;
22+
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
2323
}
2424

2525
extern {

core-foundation-sys/src/dictionary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub type CFDictionaryRef = *const __CFDictionary;
4848
pub type CFMutableDictionaryRef = *mut __CFDictionary;
4949

5050
unsafe impl ::objc2_encode::RefEncode for __CFDictionary {
51-
const ENCODING_REF: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Object;
51+
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
5252
}
5353

5454
extern {

core-foundation-sys/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub struct __CFString(c_void);
193193
pub type CFStringRef = *const __CFString;
194194

195195
unsafe impl ::objc2_encode::RefEncode for __CFString {
196-
const ENCODING_REF: ::objc2_encode::Encoding<'static> = ::objc2_encode::Encoding::Object;
196+
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
197197
}
198198

199199
extern {

core-graphics-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bitflags = "1.0"
1212
core-foundation = { path = "../core-foundation", version = "0.9" }
1313
foreign-types = "0.3.0"
1414
libc = "0.2"
15-
objc2-encode = { version = "=2.0.0-pre.1" }
15+
objc2-encode = { version = "=2.0.0-pre.2" }
1616

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

core-graphics-types/src/geometry.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct CGSize {
4141
}
4242

4343
unsafe impl Encode for CGSize {
44-
const ENCODING: Encoding<'static> =
44+
const ENCODING: Encoding =
4545
Encoding::Struct("CGSize", &[CGFloat::ENCODING, CGFloat::ENCODING]);
4646
}
4747

@@ -70,7 +70,7 @@ pub struct CGPoint {
7070
}
7171

7272
unsafe impl Encode for CGPoint {
73-
const ENCODING: Encoding<'static> =
73+
const ENCODING: Encoding =
7474
Encoding::Struct("CGPoint", &[CGFloat::ENCODING, CGFloat::ENCODING]);
7575
}
7676

@@ -99,7 +99,7 @@ pub struct CGRect {
9999
}
100100

101101
unsafe impl Encode for CGRect {
102-
const ENCODING: Encoding<'static> =
102+
const ENCODING: Encoding =
103103
Encoding::Struct("CGRect", &[CGPoint::ENCODING, CGSize::ENCODING]);
104104
}
105105

@@ -168,7 +168,7 @@ pub struct CGAffineTransform {
168168
}
169169

170170
unsafe impl Encode for CGAffineTransform {
171-
const ENCODING: Encoding<'static> = Encoding::Struct(
171+
const ENCODING: Encoding = Encoding::Struct(
172172
"CGAffineTransform",
173173
&[
174174
CGFloat::ENCODING,

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.3.0"
2020
libc = "0.2"
21-
objc2-encode = { version = "=2.0.0-pre.1" }
21+
objc2-encode = { version = "=2.0.0-pre.2" }
2222

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

core-graphics/src/sys.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub type CGImageRef = *mut CGImage;
99
pub struct __CGColor(c_void);
1010

1111
unsafe impl RefEncode for __CGColor {
12-
const ENCODING_REF: Encoding<'static> = Encoding::Unknown;
12+
const ENCODING_REF: Encoding = Encoding::Unknown;
1313
}
1414

1515
pub type CGColorRef = *const __CGColor;
@@ -21,7 +21,7 @@ pub enum CGPath {}
2121
pub type CGPathRef = *mut CGPath;
2222

2323
unsafe impl RefEncode for CGPath {
24-
const ENCODING_REF: Encoding<'static> = Encoding::Unknown;
24+
const ENCODING_REF: Encoding = Encoding::Unknown;
2525
}
2626

2727
pub enum CGDataProvider {}
@@ -34,7 +34,7 @@ pub enum CGContext {}
3434
pub type CGContextRef = *mut CGContext;
3535

3636
unsafe impl RefEncode for CGContext {
37-
const ENCODING_REF: Encoding<'static> = Encoding::Unknown;
37+
const ENCODING_REF: Encoding = Encoding::Unknown;
3838
}
3939

4040
pub enum CGGradient {}

0 commit comments

Comments
 (0)