File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- use objc:: runtime:: Class ;
1
+ use objc:: runtime:: { BOOL , Class , NO } ;
2
2
use objc:: { EncodePtr , Id , Message , ShareId } ;
3
3
4
4
use NSString ;
@@ -19,10 +19,10 @@ pub trait INSObject : 'static + Sized + Message + EncodePtr {
19
19
}
20
20
21
21
fn is_equal < T > ( & self , other : & T ) -> bool where T : INSObject {
22
- let result: i8 = unsafe {
22
+ let result: BOOL = unsafe {
23
23
msg_send ! [ self , isEqual: other]
24
24
} ;
25
- result != 0
25
+ result != NO
26
26
}
27
27
28
28
fn description ( & self ) -> ShareId < NSString > {
@@ -33,10 +33,10 @@ pub trait INSObject : 'static + Sized + Message + EncodePtr {
33
33
}
34
34
35
35
fn is_kind_of ( & self , cls : & Class ) -> bool {
36
- let result: i8 = unsafe {
36
+ let result: BOOL = unsafe {
37
37
msg_send ! [ self , isKindOfClass: cls]
38
38
} ;
39
- result != 0
39
+ result != NO
40
40
}
41
41
42
42
fn new ( ) -> Id < Self > {
You can’t perform that action at this time.
0 commit comments