diff --git a/termwiz/Cargo.toml b/termwiz/Cargo.toml index 8ed2e4e14..2e833bcfd 100644 --- a/termwiz/Cargo.toml +++ b/termwiz/Cargo.toml @@ -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"] diff --git a/termwiz/src/color.rs b/termwiz/src/color.rs index 04a5cbb04..abb2bfae2 100644 --- a/termwiz/src/color.rs +++ b/termwiz/src/color.rs @@ -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(); } }