Skip to content

Commit

Permalink
fix(coap): Minor lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jul 2, 2024
1 parent 05817f3 commit 0fde5e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/coap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
R,
);

let mut handler = coap_message_demos::full_application_tree(log)
let handler = coap_message_demos::full_application_tree(log)
.at(
&["stdout"],
coap_scroll_ring_server::BufferHandler::new(&buffer),
Expand Down
2 changes: 1 addition & 1 deletion examples/coap/src/udp_nal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<'a> ConnectedUdp<'a> {
/// unconnected.
pub async fn connect(socket: udp::UdpSocket<'a>, /*, ... */) -> Result<Self, udp::BindError> {
// This is really just a copy of the provided `embedded_nal::udp::UdpStack::connect` method
todo!()
todo!("use {:p}", &socket)
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/coapcore/src/seccontext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ impl<'a, H: coap_handler::Handler, L: Write, Crypto: lakers::Crypto> coap_handle
self.log,
"Got credential by value: {:?}..",
&id_cred_i.value.get_slice(0, 5)
);
)
.unwrap();

cred_i = lakers::CredentialRPK::new(id_cred_i.value)
// FIXME What kind of error do we send here?
Expand Down

0 comments on commit 0fde5e3

Please sign in to comment.