Skip to content

Commit 4c374d9

Browse files
committed
fix: rustfmt Ipv4Addr::new args on separate lines
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 5d59c8a commit 4c374d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

host/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,10 @@ fn learn_ips_from_dns_response(data: &[u8], al: &AllowList) {
10571057
match rtype {
10581058
1 if rdlen == 4 => {
10591059
let ip = IpAddr::V4(std::net::Ipv4Addr::new(
1060-
data[pos], data[pos + 1], data[pos + 2], data[pos + 3],
1060+
data[pos],
1061+
data[pos + 1],
1062+
data[pos + 2],
1063+
data[pos + 3],
10611064
));
10621065
al.learn_ip(ip);
10631066
}

0 commit comments

Comments
 (0)