Skip to content

Commit

Permalink
serde_cbor
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweoss committed Oct 4, 2021
1 parent 18333cd commit 19d94e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
41 changes: 17 additions & 24 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ usvg = "0.18.0"
resvg = "0.18.0"
tiny-skia = "0.6.1"
serde = { version = "1.0.123", features = ["derive"] }
serde_json = "1.0.67"
serde_cbor = "0.11.2"
rv = "0.13.0"

[features]
Expand Down
2 changes: 1 addition & 1 deletion cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Dump {
pub fn load(path: &str) -> Self {
let file = std::fs::File::open(path).unwrap();
let reader = std::io::BufReader::new(file);
let dump: Dump = serde_json::from_reader(reader).unwrap();
let dump: Dump = serde_cbor::from_reader(reader).unwrap();
dump
}
pub fn to_filtered(&self) -> FilteredData {
Expand Down

0 comments on commit 19d94e0

Please sign in to comment.