@@ -48,7 +48,7 @@ impl core::fmt::Debug for Cost {
4848
4949impl Ord for Cost {
5050 #[ inline]
51- fn cmp ( & self , other : & Self ) -> std :: cmp:: Ordering {
51+ fn cmp ( & self , other : & Self ) -> core :: cmp:: Ordering {
5252 // We make sure that the high bits are the op cost and the low bits are
5353 // the depth. This means that we can use normal integer comparison to
5454 // order by op cost and then depth.
@@ -65,7 +65,7 @@ impl Ord for Cost {
6565
6666impl PartialOrd for Cost {
6767 #[ inline]
68- fn partial_cmp ( & self , other : & Self ) -> Option < std :: cmp:: Ordering > {
68+ fn partial_cmp ( & self , other : & Self ) -> Option < core :: cmp:: Ordering > {
6969 Some ( self . cmp ( other) )
7070 }
7171}
@@ -172,24 +172,24 @@ impl Cost {
172172 }
173173}
174174
175- impl std :: iter:: Sum < Cost > for Cost {
175+ impl core :: iter:: Sum < Cost > for Cost {
176176 fn sum < I : Iterator < Item = Cost > > ( iter : I ) -> Self {
177177 iter. fold ( Self :: zero ( ) , |a, b| a + b)
178178 }
179179}
180180
181- impl std :: default:: Default for Cost {
181+ impl core :: default:: Default for Cost {
182182 fn default ( ) -> Cost {
183183 Cost :: zero ( )
184184 }
185185}
186186
187- impl std :: ops:: Add < Cost > for Cost {
187+ impl core :: ops:: Add < Cost > for Cost {
188188 type Output = Cost ;
189189
190190 fn add ( self , other : Cost ) -> Cost {
191191 let op_cost = self . op_cost ( ) . saturating_add ( other. op_cost ( ) ) ;
192- let depth = std :: cmp:: max ( self . depth ( ) , other. depth ( ) ) ;
192+ let depth = core :: cmp:: max ( self . depth ( ) , other. depth ( ) ) ;
193193 Cost :: new ( op_cost, depth)
194194 }
195195}
0 commit comments