removed mutability of test variable that is not needed.
This commit is contained in:
parent
3b4a5ce285
commit
45c5227a19
@ -163,7 +163,7 @@ mod tests {
|
|||||||
// an IPv4 Address
|
// an IPv4 Address
|
||||||
fn arr_to_ipaddr() {
|
fn arr_to_ipaddr() {
|
||||||
use super::*;
|
use super::*;
|
||||||
let mut ip_addr: [u8; 4] = [127, 0, 0, 1];
|
let ip_addr: [u8; 4] = [127, 0, 0, 1];
|
||||||
assert_eq!(IpAddr::from_arr(&ip_addr).unwrap(), IpAddr::V4(127, 0, 0, 1));
|
assert_eq!(IpAddr::from_arr(&ip_addr).unwrap(), IpAddr::V4(127, 0, 0, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user