Skip to content

Commit

Permalink
provider use correct deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
TBS1996 committed Jan 4, 2025
1 parent 2429ec7 commit c79bc06
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions speki-dto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,8 @@ pub trait SpekiProvider<T: Item>: Sync {
let mut outmap = HashMap::new();

for (key, val) in map {
match toml::from_str(&val.content) {
Ok(val) => {
let _ = outmap.insert(key, val);
}
Err(e) => warn!("failed to deserialize {} {}: {:?}", T::identifier(), key, e),
}
let val = <T as Item>::deserialize(key, val.content);
outmap.insert(key, val);
}
outmap
}
Expand Down

0 comments on commit c79bc06

Please sign in to comment.