diff --git a/crates/turborepo-ci/src/lib.rs b/crates/turborepo-ci/src/lib.rs index 53ce07836e496..511b40df9d8bb 100644 --- a/crates/turborepo-ci/src/lib.rs +++ b/crates/turborepo-ci/src/lib.rs @@ -190,7 +190,10 @@ mod tests { unsafe { env::set_var(key, val) }; } - assert_eq!(Vendor::infer_inner(), want.as_ref()); + assert_eq!( + Vendor::infer_inner().map(|v| v.name), + want.as_ref().map(|v| v.name) + ); if Vendor::get_name() == Some("GitHub Actions") { if let Some(live_ci) = live_ci { diff --git a/crates/turborepo-ci/src/vendor_behavior.rs b/crates/turborepo-ci/src/vendor_behavior.rs index 54de63b717d40..bd03381b9399e 100644 --- a/crates/turborepo-ci/src/vendor_behavior.rs +++ b/crates/turborepo-ci/src/vendor_behavior.rs @@ -5,7 +5,7 @@ use chrono::{DateTime, Utc}; pub type GroupPrefixFn = Arc) -> String + Send + Sync>; type GroupPrefixFnFactory = fn(group_name: String) -> GroupPrefixFn; -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub struct VendorBehavior { pub group_prefix: GroupPrefixFnFactory, pub group_suffix: GroupPrefixFnFactory, diff --git a/crates/turborepo-ci/src/vendors.rs b/crates/turborepo-ci/src/vendors.rs index 2876e6bf8997d..a1f4d60db5b24 100644 --- a/crates/turborepo-ci/src/vendors.rs +++ b/crates/turborepo-ci/src/vendors.rs @@ -12,7 +12,7 @@ pub struct VendorEnvs { pub(crate) all: Vec<&'static str>, } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] #[allow(dead_code)] pub struct Vendor { pub(crate) name: &'static str, diff --git a/crates/turborepo-filewatch/src/fsevent.rs b/crates/turborepo-filewatch/src/fsevent.rs index 5376ca38b8ae3..e211b98aed795 100644 --- a/crates/turborepo-filewatch/src/fsevent.rs +++ b/crates/turborepo-filewatch/src/fsevent.rs @@ -562,11 +562,11 @@ unsafe fn callback_impl( if *r || &path == p { handle_event = true; break; - } else if let Some(parent_path) = path.parent() { - if parent_path == p { - handle_event = true; - break; - } + } else if let Some(parent_path) = path.parent() + && parent_path == p + { + handle_event = true; + break; } } } diff --git a/crates/turborepo-wax/src/lib.rs b/crates/turborepo-wax/src/lib.rs index 6c910c7982c7f..a7c488c55710a 100644 --- a/crates/turborepo-wax/src/lib.rs +++ b/crates/turborepo-wax/src/lib.rs @@ -12,6 +12,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/olson-sean-k/wax/master/doc/wax.svg?sanitize=true" )] +#![allow(dead_code)] #![allow(clippy::all)] #![deny( clippy::cast_lossless,