From 81f588bbebb42ab030cb3a4f531eafeb2143f916 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Tue, 2 Jul 2024 15:21:21 +0200 Subject: [PATCH] fixup! fixup! fix: apply code review suggestions from #15 --- libcoap/src/message/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcoap/src/message/mod.rs b/libcoap/src/message/mod.rs index fbcc45e..a2e9152 100644 --- a/libcoap/src/message/mod.rs +++ b/libcoap/src/message/mod.rs @@ -74,12 +74,12 @@ pub enum CoapOption { ETag(ETag), MaxAge(MaxAge), Observe(Observe), - Other(CoapOptionNum, Box<[u8]>), Oscore(Oscore), Echo(Echo), RTag(RequestTag), QBlock1(Block), QBlock2(Block), + Other(CoapOptionNum, Box<[u8]>), } impl CoapOption { @@ -205,12 +205,12 @@ impl CoapOption { CoapOption::ETag(value) => value, CoapOption::MaxAge(value) => encode_var_len_u32(value), CoapOption::Observe(value) => encode_var_len_u32(value), - CoapOption::Other(_num, data) => data, CoapOption::Oscore(value) => value, CoapOption::Echo(value) => value, CoapOption::RTag(value) => value, CoapOption::QBlock1(value) => encode_var_len_u32(value), CoapOption::QBlock2(value) => encode_var_len_u32(value), + CoapOption::Other(_num, data) => data, }; if let Some(opt_type) = ::from_u16(num) { if bytes.len() < opt_type.min_len() {