Skip to content

Commit d46f4c6

Browse files
MathiasKocheldruin
authored andcommitted
Update heapless to v0.7.0 and use const generics
1 parent a6b1ab0 commit d46f4c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ categories = ["embedded", "hardware-support", "no-std", "network-programming"]
2020
[dependencies]
2121
nb = "1"
2222
no-std-net = "0.5"
23-
heapless = "^0.6.1"
23+
heapless = "^0.7"

src/dns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use heapless::{consts, String};
1+
use heapless::String;
22
use no_std_net::IpAddr;
33

44
/// This is the host address type to be returned by `gethostbyname`.
@@ -43,5 +43,5 @@ pub trait Dns {
4343
/// 255 bytes [`rfc1035`]
4444
///
4545
/// [`rfc1035`]: https://tools.ietf.org/html/rfc1035
46-
fn get_host_by_address(&self, addr: IpAddr) -> nb::Result<String<consts::U256>, Self::Error>;
46+
fn get_host_by_address(&self, addr: IpAddr) -> nb::Result<String<256>, Self::Error>;
4747
}

0 commit comments

Comments
 (0)