File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ 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 ( & mut self , addr : IpAddr , result : & mut [ u8 ] ) -> Result < usize , Self :: Error > ;
51
51
}
52
52
53
53
impl < T : Dns > Dns for & mut T {
@@ -61,7 +61,7 @@ impl<T: Dns> Dns for &mut T {
61
61
T :: get_host_by_name ( self , hostname, addr_type)
62
62
}
63
63
64
- fn get_host_by_address ( & self , addr : IpAddr , result : & mut [ u8 ] ) -> Result < usize , Self :: Error > {
64
+ fn get_host_by_address ( & mut self , addr : IpAddr , result : & mut [ u8 ] ) -> Result < usize , Self :: Error > {
65
65
T :: get_host_by_address ( self , addr, result)
66
66
}
67
67
}
You can’t perform that action at this time.
0 commit comments