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 {
4747 /// buffer to guarantee it'll always be large enough.
4848 ///
4949 /// [`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 > ;
5151}
5252
5353impl < T : Dns > Dns for & mut T {
@@ -61,7 +61,7 @@ impl<T: Dns> Dns for &mut T {
6161 T :: get_host_by_name ( self , hostname, addr_type)
6262 }
6363
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 > {
6565 T :: get_host_by_address ( self , addr, result)
6666 }
6767}
You can’t perform that action at this time.
0 commit comments