File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## Unreleased
9
9
10
- * None
10
+ - Changed self references in dns stack methods to mutable, to follow the network stack implementations.
11
11
12
12
## [ 0.5.0] - 2021-05-20
13
13
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub trait Dns {
32
32
/// Resolve the first ip address of a host, given its hostname and a desired
33
33
/// address record type to look for
34
34
fn get_host_by_name (
35
- & self ,
35
+ & mut self ,
36
36
hostname : & str ,
37
37
addr_type : AddrType ,
38
38
) -> nb:: Result < IpAddr , Self :: Error > ;
@@ -43,5 +43,5 @@ pub trait Dns {
43
43
/// 255 bytes [`rfc1035`]
44
44
///
45
45
/// [`rfc1035`]: https://tools.ietf.org/html/rfc1035
46
- fn get_host_by_address ( & self , addr : IpAddr ) -> nb:: Result < String < 256 > , Self :: Error > ;
46
+ fn get_host_by_address ( & mut self , addr : IpAddr ) -> nb:: Result < String < 256 > , Self :: Error > ;
47
47
}
You can’t perform that action at this time.
0 commit comments