Commit dcc2ef2
neighbour: impl From<IpAddr> for NeighbourAddress
There are already impls for Ipv4Addr and Ipv6Addr, so for convenience
and commonality with other *Address types add an impl for IpAddr too.
Signed-off-by: Duncan Eastoe <[email protected]>1 parent 9a9aa78 commit dcc2ef2
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
0 commit comments