Skip to content

Commit

Permalink
downgrade heapless and serde-json-core
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Oct 29, 2024
1 parent 3cd917d commit c47d709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ repository = "https://github.com/gauteh/notecard-rs"
[dependencies]
defmt = "0.3"
embedded-hal = "0.2.6"
heapless = { version = "0.8", features = [ "serde", "ufmt", "defmt-03" ] }
heapless = { version = "0.7", features = [ "serde", "ufmt-impl", "defmt-impl" ] }
serde = { version = "1", features = ["derive"], default-features = false }
serde-json-core = "0.6.0"
serde-json-core = "0.5.1"

[dev-dependencies]
base64 = { version = "0.13.0", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![feature(type_changing_struct_update)]
#![cfg_attr(not(test), no_std)]

use core::convert::Infallible;
use core::marker::PhantomData;

#[allow(unused_imports)]
Expand Down Expand Up @@ -117,7 +118,7 @@ impl NoteError {
NoteError::DeserError(s)
}

pub fn string_err(_e: ()) -> NoteError {
pub fn string_err(_e: Infallible) -> NoteError {
NoteError::BufOverflow
}
}
Expand Down

0 comments on commit c47d709

Please sign in to comment.