Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories = [
license = "MIT OR Apache-2.0"

[dependencies]
cortex-m = { version = "0.6.0", optional = true }
cortex-m = { version = "0.7.0", optional = true }

[dependencies.defmt]
version = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
//! implemented by disabling interrupts. The critical sections are very short, a few instructions at
//! most, so they should make no difference to most applications.

#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]
#![deny(missing_docs)]
#![deny(warnings)]

Expand Down
13 changes: 0 additions & 13 deletions core/src/vusize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,6 @@ pub fn encoded_len(value: usize) -> usize {
}
}

/// Get the length of an encoded `usize` for the given value in bytes.
#[cfg(target_pointer_width = "8")]
pub fn encoded_len(value: usize) -> usize {
// I don't think you can have targets with 8 bit pointers in rust,
// but just in case, 0..=127 would fit in one byte, and 128..=255
// would fit in two.
if (value & 0x80) == 0x80 {
2
} else {
1
}
}

/// Encode the given usize to the `slice`, using `length` bytes for encoding.
///
/// ## Safety
Expand Down
Loading