@@ -293,8 +293,8 @@ impl bitstring::BitString for AnyIpCidr {
293293 } else {
294294 match self {
295295 Self :: Any => unreachable ! ( ) ,
296- Self :: V4 ( mut c) => c. set ( ndx - 1 , bit) ,
297- Self :: V6 ( mut c) => c. set ( ndx - 1 , bit) ,
296+ Self :: V4 ( ref mut c) => c. set ( ndx - 1 , bit) ,
297+ Self :: V6 ( ref mut c) => c. set ( ndx - 1 , bit) ,
298298 }
299299 }
300300 }
@@ -310,8 +310,8 @@ impl bitstring::BitString for AnyIpCidr {
310310 } else {
311311 match self {
312312 Self :: Any => unreachable ! ( ) ,
313- Self :: V4 ( mut c) => c. flip ( ndx - 1 ) ,
314- Self :: V6 ( mut c) => c. flip ( ndx - 1 ) ,
313+ Self :: V4 ( ref mut c) => c. flip ( ndx - 1 ) ,
314+ Self :: V6 ( ref mut c) => c. flip ( ndx - 1 ) ,
315315 }
316316 }
317317 }
@@ -334,8 +334,8 @@ impl bitstring::BitString for AnyIpCidr {
334334 } else {
335335 match self {
336336 Self :: Any => ( ) ,
337- Self :: V4 ( mut c) => c. clip ( len - 1 ) ,
338- Self :: V6 ( mut c) => c. clip ( len - 1 ) ,
337+ Self :: V4 ( ref mut c) => c. clip ( len - 1 ) ,
338+ Self :: V6 ( ref mut c) => c. clip ( len - 1 ) ,
339339 }
340340 }
341341 }
@@ -349,8 +349,8 @@ impl bitstring::BitString for AnyIpCidr {
349349 * self = Self :: V4 ( Ipv4Cidr :: null ( ) ) ;
350350 }
351351 } ,
352- Self :: V4 ( mut c) => c. append ( bit) ,
353- Self :: V6 ( mut c) => c. append ( bit) ,
352+ Self :: V4 ( ref mut c) => c. append ( bit) ,
353+ Self :: V6 ( ref mut c) => c. append ( bit) ,
354354 }
355355 }
356356
0 commit comments