From 51f5c11e2bfaf4babeaf58fa87bc0ce2db2982ce Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 28 Aug 2020 09:00:43 +0200 Subject: [PATCH] formatting fixup Signed-off-by: Wolfgang Bumiller --- src/match_list.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/match_list.rs b/src/match_list.rs index 4e51e02..fb8a422 100644 --- a/src/match_list.rs +++ b/src/match_list.rs @@ -360,11 +360,7 @@ pub trait MatchList { fn matches_do(&self, path: &[u8], file_mode: Option) -> Option; /// Check whether this list contains anything exactly matching the path and mode. - fn matches_exact>( - &self, - path: T, - file_mode: Option, - ) -> Option { + fn matches_exact>(&self, path: T, file_mode: Option) -> Option { self.matches_exact_do(path.as_ref(), file_mode) } @@ -429,8 +425,7 @@ fn assert_containers_implement_match_list() { #[test] fn test_file_type_matches() { let matchlist = vec![ - MatchEntry::parse_pattern("a_dir/", PatternFlag::PATH_NAME, MatchType::Include) - .unwrap(), + MatchEntry::parse_pattern("a_dir/", PatternFlag::PATH_NAME, MatchType::Include).unwrap(), MatchEntry::parse_pattern("!a_file", PatternFlag::PATH_NAME, MatchType::Include) .unwrap() .flags(MatchFlag::MATCH_REGULAR_FILES), @@ -487,8 +482,9 @@ fn test_anchored_matches() { #[test] fn test_literal_matches() { - let matchlist = vec![ - MatchEntry::new(MatchPattern::Literal(b"/bin/mv".to_vec()), MatchType::Include), - ]; + let matchlist = vec![MatchEntry::new( + MatchPattern::Literal(b"/bin/mv".to_vec()), + MatchType::Include, + )]; assert_eq!(matchlist.matches("/bin/mv", None), Some(MatchType::Include)); }