diff options
| author | Max Audron <audron@cocaine.farm> | 2021-07-31 12:53:53 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-07-31 12:53:53 +0200 |
| commit | b218d85754ff1b1ad0fc0c2f70d88da162d5b47d (patch) | |
| tree | 5633f40b80792b2a1c21cf40e085622137347b76 /src/util.rs | |
| parent | fix trailing semicolon match_variant macro (diff) | |
upgrade to rust 2021 editionrust-2021
Diffstat (limited to '')
| -rw-r--r-- | src/util.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs index 581340d..6eb4781 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]); |
