1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

remove bincode dep

This commit is contained in:
Wez Furlong 2019-05-26 09:30:34 -07:00
parent 3f48387079
commit bba1d69c13
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ unicode-width = "~0.1"
vte = { git = "https://github.com/wez/vte", branch="oscbigbuf" }
[dev-dependencies]
bincode = "1.1"
varbincode = { path = "../varbincode" }
[dependencies.num-derive]
features = ["full-syntax"]

View File

@ -244,8 +244,8 @@ mod tests {
#[test]
fn roundtrip_rgbcolor() {
let data = bincode::serialize(&RgbColor::from_named("DarkGreen").unwrap()).unwrap();
let data = varbincode::serialize(&RgbColor::from_named("DarkGreen").unwrap()).unwrap();
eprintln!("serialized as {:?}", data);
let _decoded: RgbColor = bincode::deserialize(&data).unwrap();
let _decoded: RgbColor = varbincode::deserialize(data.as_slice()).unwrap();
}
}