@@ -69,14 +69,14 @@ macro_rules! impl_array_newtype {
6969
7070 impl PartialOrd for $thing {
7171 #[ inline]
72- fn partial_cmp( & self , other: & $thing) -> Option <:: core:: cmp:: Ordering > {
72+ fn partial_cmp( & self , other: & $thing) -> Option <core:: cmp:: Ordering > {
7373 self [ ..] . partial_cmp( & other[ ..] )
7474 }
7575 }
7676
7777 impl Ord for $thing {
7878 #[ inline]
79- fn cmp( & self , other: & $thing) -> :: core:: cmp:: Ordering {
79+ fn cmp( & self , other: & $thing) -> core:: cmp:: Ordering {
8080 self [ ..] . cmp( & other[ ..] )
8181 }
8282 }
@@ -89,7 +89,7 @@ macro_rules! impl_array_newtype {
8989 }
9090 }
9191
92- impl :: core:: ops:: Index <usize > for $thing {
92+ impl core:: ops:: Index <usize > for $thing {
9393 type Output = $ty;
9494
9595 #[ inline]
@@ -99,41 +99,41 @@ macro_rules! impl_array_newtype {
9999 }
100100 }
101101
102- impl :: core:: ops:: Index <:: core:: ops:: Range <usize >> for $thing {
102+ impl core:: ops:: Index <core:: ops:: Range <usize >> for $thing {
103103 type Output = [ $ty] ;
104104
105105 #[ inline]
106- fn index( & self , index: :: core:: ops:: Range <usize >) -> & [ $ty] {
106+ fn index( & self , index: core:: ops:: Range <usize >) -> & [ $ty] {
107107 let & $thing( ref dat) = self ;
108108 & dat[ index]
109109 }
110110 }
111111
112- impl :: core:: ops:: Index <:: core:: ops:: RangeTo <usize >> for $thing {
112+ impl core:: ops:: Index <core:: ops:: RangeTo <usize >> for $thing {
113113 type Output = [ $ty] ;
114114
115115 #[ inline]
116- fn index( & self , index: :: core:: ops:: RangeTo <usize >) -> & [ $ty] {
116+ fn index( & self , index: core:: ops:: RangeTo <usize >) -> & [ $ty] {
117117 let & $thing( ref dat) = self ;
118118 & dat[ index]
119119 }
120120 }
121121
122- impl :: core:: ops:: Index <:: core:: ops:: RangeFrom <usize >> for $thing {
122+ impl core:: ops:: Index <core:: ops:: RangeFrom <usize >> for $thing {
123123 type Output = [ $ty] ;
124124
125125 #[ inline]
126- fn index( & self , index: :: core:: ops:: RangeFrom <usize >) -> & [ $ty] {
126+ fn index( & self , index: core:: ops:: RangeFrom <usize >) -> & [ $ty] {
127127 let & $thing( ref dat) = self ;
128128 & dat[ index]
129129 }
130130 }
131131
132- impl :: core:: ops:: Index <:: core:: ops:: RangeFull > for $thing {
132+ impl core:: ops:: Index <core:: ops:: RangeFull > for $thing {
133133 type Output = [ $ty] ;
134134
135135 #[ inline]
136- fn index( & self , _: :: core:: ops:: RangeFull ) -> & [ $ty] {
136+ fn index( & self , _: core:: ops:: RangeFull ) -> & [ $ty] {
137137 let & $thing( ref dat) = self ;
138138 & dat[ ..]
139139 }
@@ -142,15 +142,15 @@ macro_rules! impl_array_newtype {
142142 type Target = $ty;
143143 fn as_c_ptr( & self ) -> * const Self :: Target {
144144 if self . is_empty( ) {
145- :: core:: ptr:: null( )
145+ core:: ptr:: null( )
146146 } else {
147147 self . as_ptr( )
148148 }
149149 }
150150
151151 fn as_mut_c_ptr( & mut self ) -> * mut Self :: Target {
152152 if self . is_empty( ) {
153- :: core:: ptr:: null:: <Self :: Target >( ) as * mut _
153+ core:: ptr:: null:: <Self :: Target >( ) as * mut _
154154 } else {
155155 self . as_mut_ptr( )
156156 }
@@ -162,8 +162,8 @@ macro_rules! impl_array_newtype {
162162#[ macro_export]
163163macro_rules! impl_raw_debug {
164164 ( $thing: ident) => {
165- impl :: core:: fmt:: Debug for $thing {
166- fn fmt( & self , f: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
165+ impl core:: fmt:: Debug for $thing {
166+ fn fmt( & self , f: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
167167 for i in self [ ..] . iter( ) . cloned( ) {
168168 write!( f, "{:02x}" , i) ?;
169169 }
0 commit comments