Skip to content

Commit

Permalink
examples/rust-gcoap: Follow some riot-wrappers deprecations
Browse files Browse the repository at this point in the history
Keeping the code warning free helps newcomers get their own warnings,
and ensures that when riot-wrappers does breaking version changes, the
likelyhood of being affected goes down.
  • Loading branch information
chrysn committed Jan 28, 2022
1 parent b9d6c67 commit 765b8bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/rust-gcoap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resolver = "2"
crate-type = ["staticlib"]

[dependencies]
riot-wrappers = { version = "^0.7", features = [ "with_coap_message", "with_coap_handler" ] }
riot-wrappers = { version = "^0.7.10", features = [ "with_coap_message", "with_coap_handler" ] }

coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
coap-handler-implementations = ">= 0.1, < 0.4"
Expand Down
4 changes: 2 additions & 2 deletions examples/rust-gcoap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ fn main() {

println!("CoAP server ready; waiting for interfaces to settle before reporting addresses...");

let sectimer = ztimer::ZTimer::sec();
let sectimer = ztimer::Clock::sec();
sectimer.sleep_ticks(2);

for netif in gnrc::Netif::all() {
println!("Active interface from PID {:?} ({:?})", netif.pid(), netif.pid().get_name().unwrap_or("unnamed"));
match netif.ipv6_addrs() {
Ok(addrs) => {
for a in addrs.addresses() {
for a in &addrs {
println!(" Address {:?}", a);
}
}
Expand Down

0 comments on commit 765b8bd

Please sign in to comment.