Skip to content

Commit f01ede0

Browse files
author
Niam Shah
committed
removed the piece causing the error in serde
1 parent a9caf17 commit f01ede0

3 files changed

Lines changed: 377 additions & 370 deletions

File tree

arca/src/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl<'de, R: Runtime> Visitor<'de> for TableVisitor<R> {
333333
where
334334
A: serde::de::MapAccess<'de>,
335335
{
336-
let (first_key, first_value): (alloc::string::String, usize) =
336+
let (first_key, first_value): (&str, usize) =
337337
map.next_entry()?.expect("at least one element needed");
338338
assert_eq!(first_key, "len");
339339
let mut table = Table::new(first_value);

kernel/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ talc = "4.4.3"
3636
spin = "0.10.0"
3737
async-lock = { version = "3.4.1", default-features = false }
3838
postcard = "1.1.3"
39-
serde = { version = "1.0.228", default-features = false }
39+
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
40+
4041

4142
[build-dependencies]
4243
anyhow = "1.0.86"

0 commit comments

Comments
 (0)