aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index 5f52573..251e089 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -22,7 +22,6 @@ macro_rules! match_variant {
/// Prepend the length of `buf` to `buf`
pub fn prepend_byte_len(buf: &mut Vec<u8>) {
- use std::convert::TryInto;
let len: i32 = buf.len().try_into().unwrap();
let ulen: &[u8] = &len.to_be_bytes();
buf.insert(0, ulen[3]);