File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ categories = [
1515license = " MIT OR Apache-2.0"
1616
1717[dependencies ]
18- cortex-m = { version = " 0.6 .0" , optional = true }
18+ cortex-m = { version = " 0.7 .0" , optional = true }
1919
2020[dependencies .defmt ]
2121version = " 0.3.0"
Original file line number Diff line number Diff line change 9595//! implemented by disabling interrupts. The critical sections are very short, a few instructions at
9696//! most, so they should make no difference to most applications.
9797
98- #![ cfg_attr ( not ( feature = "std" ) , no_std) ]
98+ #![ no_std]
9999#![ deny( missing_docs) ]
100100#![ deny( warnings) ]
101101
Original file line number Diff line number Diff line change @@ -154,19 +154,6 @@ pub fn encoded_len(value: usize) -> usize {
154154 }
155155}
156156
157- /// Get the length of an encoded `usize` for the given value in bytes.
158- #[ cfg( target_pointer_width = "8" ) ]
159- pub fn encoded_len ( value : usize ) -> usize {
160- // I don't think you can have targets with 8 bit pointers in rust,
161- // but just in case, 0..=127 would fit in one byte, and 128..=255
162- // would fit in two.
163- if ( value & 0x80 ) == 0x80 {
164- 2
165- } else {
166- 1
167- }
168- }
169-
170157/// Encode the given usize to the `slice`, using `length` bytes for encoding.
171158///
172159/// ## Safety
You can’t perform that action at this time.
0 commit comments