From 3d832b1174221dc0c526572c33752a75db93060a Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 26 Jun 2024 12:33:49 +0200 Subject: [PATCH] style: Typo fixes --- examples/coap/src/oluru.rs | 2 +- examples/coap/src/seccontext.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/coap/src/oluru.rs b/examples/coap/src/oluru.rs index 7d5e8f655..2df36e98a 100644 --- a/examples/coap/src/oluru.rs +++ b/examples/coap/src/oluru.rs @@ -29,7 +29,7 @@ pub trait PriorityLevel { /// /// The level should not change due to global effects (or internal mutability, if shared access /// is later implemented). If it does, the ordering of an [`OrderedPool`] containing it may become - /// arbitrary, even after the elemnt whose level changed has been removed. + /// arbitrary, even after the element whose level changed has been removed. fn level(&self) -> usize; } diff --git a/examples/coap/src/seccontext.rs b/examples/coap/src/seccontext.rs index 994e5f472..f7eca601b 100644 --- a/examples/coap/src/seccontext.rs +++ b/examples/coap/src/seccontext.rs @@ -88,7 +88,7 @@ impl Into for COwn { /// [*path], Tperm = u32). /// /// FIXME: At the moment, this always represents an authorization that allows everything, and only -/// has runtime information about whether or not stdout is allowd. On the long run, this will +/// has runtime information about whether or not stdout is allowed. On the long run, this will /// likely be a CBOR item with pre-verified structure. #[derive(Debug)] struct AifStaticRest { @@ -196,13 +196,13 @@ impl core::fmt::Display for SecContextState { const LEVEL_ADMIN: usize = 0; const LEVEL_AUTHENTICATED: usize = 1; const LEVEL_ONGOING: usize = 2; -const LEVEL_EMTPY: usize = 3; +const LEVEL_EMPTY: usize = 3; const LEVEL_COUNT: usize = 4; impl crate::oluru::PriorityLevel for SecContextState { fn level(&self) -> usize { match &self.protocol_stage { - SecContextStage::Empty => LEVEL_EMTPY, + SecContextStage::Empty => LEVEL_EMPTY, SecContextStage::EdhocResponderProcessedM1 { .. } => { // If this is ever tested, means we're outbound message limited, so let's try to // get one through rather than pointlessly sending errors