File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ pub trait Dns {
47
47
/// buffer to guarantee it'll always be large enough.
48
48
///
49
49
/// [`rfc1035`]: https://tools.ietf.org/html/rfc1035
50
- fn get_host_by_address ( & self , addr : IpAddr , result : & mut [ u8 ] ) -> Result < usize , Self :: Error > ;
50
+ fn get_host_by_address (
51
+ & mut self ,
52
+ addr : IpAddr ,
53
+ result : & mut [ u8 ] ,
54
+ ) -> nb:: Result < usize , Self :: Error > ;
51
55
}
52
56
53
57
impl < T : Dns > Dns for & mut T {
@@ -61,7 +65,11 @@ impl<T: Dns> Dns for &mut T {
61
65
T :: get_host_by_name ( self , hostname, addr_type)
62
66
}
63
67
64
- fn get_host_by_address ( & self , addr : IpAddr , result : & mut [ u8 ] ) -> Result < usize , Self :: Error > {
68
+ fn get_host_by_address (
69
+ & mut self ,
70
+ addr : IpAddr ,
71
+ result : & mut [ u8 ] ,
72
+ ) -> nb:: Result < usize , Self :: Error > {
65
73
T :: get_host_by_address ( self , addr, result)
66
74
}
67
75
}
You can’t perform that action at this time.
0 commit comments