From 11e54ded8b098f640ce2f7d5a0dce58c1588c354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 6 Jul 2020 01:28:01 +0200 Subject: [PATCH] pkstrings: rustfmt in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- pkstrings/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index d79f4e9..58557cd 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -168,8 +168,8 @@ impl TryFrom for PKString { #[cfg(test)] mod tests { - use std::convert::TryFrom; use crate::PKString; + use std::convert::TryFrom; #[test] fn test_from_ord() { @@ -183,7 +183,8 @@ mod tests { 0x50, 0x50, 0x8f, 0x88, 0x83, 0x86, 0x84, 0x98, 0x50, 0x50, 0x50, 0x50, 0x50, 0x82, 0x87, 0x80, 0x91, 0x8c, 0x80, 0x8d, 0x83, 0x84, 0x91, 0x50, ]; - let result = String::from("KADABRA@@@@NIDOKING@@@BLASTOISE@@ODDISH@@@@@PIDGEY@@@@@CHARMANDER@"); + let result = + String::from("KADABRA@@@@NIDOKING@@@BLASTOISE@@ODDISH@@@@@PIDGEY@@@@@CHARMANDER@"); assert_eq!(PKString::try_from(party_nicks), Ok(PKString(result))); }