From d21cd00bcf9cdbf13b637fd8f8cbe12fe2247626 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 18 May 2021 16:14:27 +0200 Subject: [PATCH] Formatting --- src/decoder_test.rs | 5 ++++- src/utils.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/decoder_test.rs b/src/decoder_test.rs index 2172bf3..4727e34 100644 --- a/src/decoder_test.rs +++ b/src/decoder_test.rs @@ -166,7 +166,10 @@ fn test_connect_wrong_version() { 0x00, 0x04, 'r' as u8, 'u' as u8, 's' as u8, 't' as u8, // username = 'rust' 0x00, 0x02, 'm' as u8, 'q' as u8, // password = 'mq' ]; - assert!(decode_slice(&mut data).is_err(), "Unknown version should return error"); + assert!( + decode_slice(&mut data).is_err(), + "Unknown version should return error" + ); } #[test] diff --git a/src/utils.rs b/src/utils.rs index 06d274b..c0d5f59 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,5 +1,5 @@ -use core::{convert::TryFrom, fmt, num::NonZeroU16}; use crate::encoder::write_u16; +use core::{convert::TryFrom, fmt, num::NonZeroU16}; #[cfg(feature = "derive")] use serde::{Deserialize, Serialize};