Fix an unimplemented!() invocation that should be unreachable!().

This commit is contained in:
whitequark 2017-06-22 00:38:11 +00:00
parent 83cf86f1d0
commit be29789192
1 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,8 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
match (repr.src_addr(), repr.dst_addr()) {
(IpAddress::Ipv4(src_addr), IpAddress::Ipv4(dst_addr)) =>
(src_addr, dst_addr),
_ => unimplemented!()
// We've lowered all addresses to a concrete form.
_ => unreachable!()
};
let payload = ArpRepr::EthernetIpv4 {