File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ mod tests {
109109 let three = CFString :: new ( "3" ) ;
110110 let four = CFString :: new ( "4" ) ;
111111
112- let _ = CFDictionary :: new ( [ ] ) ;
112+ let _ = CFDictionary :: < CFString , CFString > :: new ( [ ] ) ;
113113 let _ = CFDictionary :: new ( [ ( one, two) , ( three, four) ] ) ;
114114 }
115115
@@ -120,7 +120,7 @@ mod tests {
120120 let three = CFString :: new ( "3" ) ;
121121 let four = CFString :: new ( "4" ) ;
122122
123- let _ = CFDictionary :: new ( vec ! [ ] ) ;
123+ let _ = CFDictionary :: < CFString , CFString > :: new ( vec ! [ ] ) ;
124124 let _ = CFDictionary :: new ( vec ! [ ( one, two) , ( three, four) ] ) ;
125125 }
126126}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ mod tests {
3535 #[ test]
3636 fn test_new ( ) {
3737 // Ensure empty and with-value set construction don't segfault
38- let _ = CFSet :: new ( & [ ] ) ;
38+ let _ = CFSet :: < CFString > :: new ( & [ ] ) ;
3939 let _ = CFSet :: new ( & [ CFString :: new ( "foo" ) ] ) ;
4040 }
4141}
Original file line number Diff line number Diff line change @@ -189,13 +189,13 @@ mod tests {
189189 assert_eq ! ( str . as_str( ) , Cow :: Borrowed ( "foo" ) ) ;
190190
191191 let non_str = CFString :: new ( c"\xC3 \x28 bar" ) ;
192- assert_eq ! ( non_str. as_str( ) , Cow :: Owned ( "\0 \0 bar" . to_string( ) ) ) ;
192+ assert_eq ! ( non_str. as_str( ) , Cow :: < str > :: Owned ( "\0 \0 bar" . to_string( ) ) ) ;
193193 }
194194
195195 #[ test]
196196 fn test_as_cstr ( ) {
197197 let str = CFString :: new ( "foo" ) ;
198- assert_eq ! ( str . as_cstr( ) , Cow :: Owned ( c"foo" . to_owned( ) ) ) ;
198+ assert_eq ! ( str . as_cstr( ) , Cow :: < CStr > :: Owned ( c"foo" . to_owned( ) ) ) ;
199199
200200 let cstr = CFString :: new ( c"foo" ) ;
201201 assert_eq ! ( cstr. as_cstr( ) , Cow :: Borrowed ( c"foo" ) ) ;
You can’t perform that action at this time.
0 commit comments