Skip to content

Commit

Permalink
fix(examples/coap): Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Oct 29, 2024
1 parent a037229 commit c454636
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/coap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#![feature(impl_trait_in_assoc_type)]
#![feature(used_with_arg)]

use riot_rs::{debug::log::*, network};

// because coapcore depends on it temporarily
extern crate alloc;
use static_alloc::Bump;
Expand All @@ -14,7 +12,7 @@ static A: Bump<[u8; 1 << 16]> = Bump::uninit();

#[riot_rs::task(autostart)]
async fn coap_run() {
use coap_handler_implementations::{HandlerBuilder, ReportingHandlerBuilder};
use coap_handler_implementations::HandlerBuilder;

let log = None;
let buffer = scroll_ring::Buffer::<512>::default();
Expand Down Expand Up @@ -61,7 +59,7 @@ async fn run_client_operations(

// shame
let addr = "10.42.0.1:1234";
let demoserver = addr.clone().parse().unwrap();
let demoserver = addr.parse().unwrap();

use coap_request::Stack;
writeln!(stdout, "Sending GET to {}...", addr).unwrap();
Expand Down

0 comments on commit c454636

Please sign in to comment.