Skip to content

Commit 872a53c

Browse files
pulsastrixJKRhb
andauthored
fix: apply code review suggestions from #15
Co-authored-by: Jan Romann <[email protected]>
1 parent 17dc53a commit 872a53c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

libcoap-sys/src/wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
*/
99

1010
#include <coap3/coap.h>
11-
#include <coap_config.h>
11+
#include <coap_config.h>

libcoap/src/event.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ pub trait CoapEventHandler: Debug {
153153
fn handle_ws_packet_size(&mut self, session: &mut CoapSession) {}
154154

155155
/// Handle a WebSocket layer up event.
156-
157156
#[allow(unused_variables)]
158157
fn handle_ws_connected(&mut self, session: &mut CoapSession) {}
159158

@@ -162,7 +161,6 @@ pub trait CoapEventHandler: Debug {
162161
#[allow(unused_variables)]
163162
fn handle_ws_closed(&mut self, session: &mut CoapSession) {}
164163

165-
166164
/// Handle a failure to perform a keepalive (no response to keepalive packet)
167165
#[allow(unused_variables)]
168166
fn handle_keepalive_failure(&mut self, session: &mut CoapSession) {}

libcoap/src/message/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl CoapResponse {
151151
///
152152
/// This option can be used by servers to ensure that a request is recent.
153153
///
154-
/// The client should include the provided request in its response.
154+
/// The client should include the provided option value in its next request.
155155
///
156156
/// As handling echo options on the client side is done automatically by libcoap, this option
157157
/// is not accessible in [CoapRequest], see `man coap_send` for more information.

0 commit comments

Comments
 (0)