From b6d0a3d53096fe79de87d00e005711e7ac37a86d Mon Sep 17 00:00:00 2001 From: Ferran Basora Date: Thu, 2 May 2019 17:04:53 +0000 Subject: [PATCH] Format code --- src/state.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/state.rs b/src/state.rs index aa51283..70bbb3c 100644 --- a/src/state.rs +++ b/src/state.rs @@ -220,14 +220,18 @@ mod tests { #[test] fn match_paths() { - let lines = - split("Lorem /tmp/foo/bar_lol, lorem\n Lorem /var/log/boot-strap.log lorem ../log/kern.log lorem"); + let lines = split( + "Lorem /tmp/foo/bar_lol, lorem\n Lorem /var/log/boot-strap.log lorem ../log/kern.log lorem", + ); let custom = [].to_vec(); let results = State::new(&lines, "abcd", &custom).matches(false, false); assert_eq!(results.len(), 3); assert_eq!(results.get(0).unwrap().text.clone(), "/tmp/foo/bar_lol"); - assert_eq!(results.get(1).unwrap().text.clone(), "/var/log/boot-strap.log"); + assert_eq!( + results.get(1).unwrap().text.clone(), + "/var/log/boot-strap.log" + ); assert_eq!(results.get(2).unwrap().text.clone(), "../log/kern.log"); }