removed mutability of test variable that is not needed.

This commit is contained in:
Luke Else 2023-04-20 21:57:50 +01:00
parent 3b4a5ce285
commit 45c5227a19

View File

@ -163,7 +163,7 @@ mod tests {
// an IPv4 Address
fn arr_to_ipaddr() {
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));
}
}