Skip to content

Commit 966f19d

Browse files
chore: fix lints (#10786)
### Description Noticed a few lints from the recent edition bump ### Testing Instructions 👀
1 parent 2bf8e5e commit 966f19d

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

crates/turborepo-ci/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

crates/turborepo-ci/src/vendor_behavior.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use chrono::{DateTime, Utc};
55
pub type GroupPrefixFn = Arc<dyn Fn(DateTime<Utc>) -> String + Send + Sync>;
66
type GroupPrefixFnFactory = fn(group_name: String) -> GroupPrefixFn;
77

8-
#[derive(Clone, Debug, PartialEq)]
8+
#[derive(Clone, Debug)]
99
pub struct VendorBehavior {
1010
pub group_prefix: GroupPrefixFnFactory,
1111
pub group_suffix: GroupPrefixFnFactory,

crates/turborepo-ci/src/vendors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)]
1717
pub struct Vendor {
1818
pub(crate) name: &'static str,

crates/turborepo-filewatch/src/fsevent.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

crates/turborepo-wax/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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,

0 commit comments

Comments
 (0)