Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasKoch committed May 18, 2021
1 parent 78b1d2a commit d21cd00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/decoder_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down

0 comments on commit d21cd00

Please sign in to comment.