Cleanup
This commit is contained in:
parent
c0a3ee08b8
commit
1618bffb85
6 changed files with 22 additions and 152 deletions
|
|
@ -69,11 +69,12 @@ pub fn decode_sequence<T: Decode>(len: usize, bytes: &[u8]) -> Result<Vec<T>, bi
|
|||
}
|
||||
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn example_encoding_decoding() {
|
||||
let xs: Vec<u32> = vec![123, 250, 256, 123, 123, 123];
|
||||
let xs: Vec<u32> = vec![];
|
||||
let xs: Vec<u32> = vec![123];
|
||||
let xs: Vec<u32> = vec![123, 250];
|
||||
let _xs: Vec<u32> = vec![123, 250, 256, 123, 123, 123];
|
||||
let _xs: Vec<u32> = vec![];
|
||||
let _xs: Vec<u32> = vec![123];
|
||||
let _xs: Vec<u32> = vec![123, 250];
|
||||
|
||||
let xs: Vec<String> = vec!["foo".to_string(), "bar".to_string()];
|
||||
|
||||
|
|
@ -87,4 +88,3 @@ fn example_encoding_decoding() {
|
|||
let dxs = decode_vector::<String>(&exs[..]).unwrap();
|
||||
println!("decoded {:?}", dxs);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue