Skip to content

Commit c47d709

Browse files
committedOct 29, 2024·
downgrade heapless and serde-json-core
1 parent 3cd917d commit c47d709

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repository = "https://github.com/gauteh/notecard-rs"
1010
[dependencies]
1111
defmt = "0.3"
1212
embedded-hal = "0.2.6"
13-
heapless = { version = "0.8", features = [ "serde", "ufmt", "defmt-03" ] }
13+
heapless = { version = "0.7", features = [ "serde", "ufmt-impl", "defmt-impl" ] }
1414
serde = { version = "1", features = ["derive"], default-features = false }
15-
serde-json-core = "0.6.0"
15+
serde-json-core = "0.5.1"
1616

1717
[dev-dependencies]
1818
base64 = { version = "0.13.0", default-features = false }

‎src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#![feature(type_changing_struct_update)]
55
#![cfg_attr(not(test), no_std)]
66

7+
use core::convert::Infallible;
78
use core::marker::PhantomData;
89

910
#[allow(unused_imports)]
@@ -117,7 +118,7 @@ impl NoteError {
117118
NoteError::DeserError(s)
118119
}
119120

120-
pub fn string_err(_e: ()) -> NoteError {
121+
pub fn string_err(_e: Infallible) -> NoteError {
121122
NoteError::BufOverflow
122123
}
123124
}

0 commit comments

Comments
 (0)
Please sign in to comment.