Skip to content

Commit 4a343f3

Browse files
authored
Merge pull request #106 from Sympatron/patch-1
Update cortex-m to 0.7
2 parents d9f647f + b72402c commit 4a343f3

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ categories = [
1515
license = "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]
2121
version = "0.3.0"

core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
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

core/src/vusize.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)