File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ mod tests {
190190 unsafe { env:: set_var ( key, val) } ;
191191 }
192192
193- assert_eq ! ( Vendor :: infer_inner( ) , want. as_ref( ) ) ;
193+ assert_eq ! (
194+ Vendor :: infer_inner( ) . map( |v| v. name) ,
195+ want. as_ref( ) . map( |v| v. name)
196+ ) ;
194197
195198 if Vendor :: get_name ( ) == Some ( "GitHub Actions" ) {
196199 if let Some ( live_ci) = live_ci {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use chrono::{DateTime, Utc};
55pub type GroupPrefixFn = Arc < dyn Fn ( DateTime < Utc > ) -> String + Send + Sync > ;
66type GroupPrefixFnFactory = fn ( group_name : String ) -> GroupPrefixFn ;
77
8- #[ derive( Clone , Debug , PartialEq ) ]
8+ #[ derive( Clone , Debug ) ]
99pub struct VendorBehavior {
1010 pub group_prefix : GroupPrefixFnFactory ,
1111 pub group_suffix : GroupPrefixFnFactory ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct VendorEnvs {
1212 pub ( crate ) all : Vec < & ' static str > ,
1313}
1414
15- #[ derive( Clone , Debug , PartialEq ) ]
15+ #[ derive( Clone , Debug ) ]
1616#[ allow( dead_code) ]
1717pub struct Vendor {
1818 pub ( crate ) name : & ' static str ,
Original file line number Diff line number Diff line change @@ -562,11 +562,11 @@ unsafe fn callback_impl(
562562 if * r || & path == p {
563563 handle_event = true ;
564564 break ;
565- } else if let Some ( parent_path) = path. parent ( ) {
566- if parent_path == p {
567- handle_event = true ;
568- break ;
569- }
565+ } else if let Some ( parent_path) = path. parent ( )
566+ && parent_path == p
567+ {
568+ handle_event = true ;
569+ break ;
570570 }
571571 }
572572 }
Original file line number Diff line number Diff line change 1212#![ doc(
1313 html_logo_url = "https://raw.githubusercontent.com/olson-sean-k/wax/master/doc/wax.svg?sanitize=true"
1414) ]
15+ #![ allow( dead_code) ]
1516#![ allow( clippy:: all) ]
1617#![ deny(
1718 clippy:: cast_lossless,
You can’t perform that action at this time.
0 commit comments