From 9503809f565653fa0d2e7534f2cf380052c0be4c Mon Sep 17 00:00:00 2001 From: chrysn Date: Fri, 25 Feb 2022 13:11:57 +0100 Subject: [PATCH] examples/rust-gcoap: Follow renames / deprecations of riot-wrappers --- examples/rust-gcoap/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rust-gcoap/src/lib.rs b/examples/rust-gcoap/src/lib.rs index 0059b4523c..4fdcdbba21 100644 --- a/examples/rust-gcoap/src/lib.rs +++ b/examples/rust-gcoap/src/lib.rs @@ -33,14 +33,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); } }