Revert "Reformat imports to a consistent style for imports"

This reverts commit 139d15cd84.
This commit is contained in:
Trent Nelson
2021-12-13 08:48:39 -07:00
committed by Tao Zhu
parent d1e0941289
commit d7377d4794
380 changed files with 5320 additions and 6094 deletions

View File

@@ -1,12 +1,10 @@
#![allow(clippy::integer_arithmetic)]
use {
serde::{
de::{self, Deserializer, SeqAccess, Visitor},
ser::{self, SerializeTuple, Serializer},
Deserialize, Serialize,
},
std::{convert::TryFrom, fmt, marker::PhantomData},
use serde::{
de::{self, Deserializer, SeqAccess, Visitor},
ser::{self, SerializeTuple, Serializer},
{Deserialize, Serialize},
};
use std::{convert::TryFrom, fmt, marker::PhantomData};
/// Same as u16, but serialized with 1 to 3 bytes. If the value is above
/// 0x7f, the top bit is set and the remaining value is stored in the next
@@ -267,11 +265,9 @@ pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
#[cfg(test)]
mod tests {
use {
super::*,
assert_matches::assert_matches,
bincode::{deserialize, serialize},
};
use super::*;
use assert_matches::assert_matches;
use bincode::{deserialize, serialize};
/// Return the serialized length.
fn encode_len(len: u16) -> Vec<u8> {