From 4fa1f9c6bc616c0df1cbd688925833b4e559623a Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Mon, 20 Dec 2021 16:35:55 +0000 Subject: [PATCH] fix a few lints in clippy 1.57 --- cli/src/settings/report.rs | 2 +- cli/src/usage.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/settings/report.rs b/cli/src/settings/report.rs index 88ca1a3cb..3cc5e3e2c 100644 --- a/cli/src/settings/report.rs +++ b/cli/src/settings/report.rs @@ -130,7 +130,7 @@ impl TryFrom<&toml::Value> for Report { .map(|(i, v)| { v.as_str() .ok_or_else(|| anyhow!(".filter[{}]: not a string", i)) - .and_then(|s| Condition::parse_str(s)) + .and_then(Condition::parse_str) .map_err(|e| anyhow!(".filter[{}]: {}", i, e)) }) .collect::>>()?, diff --git a/cli/src/usage.rs b/cli/src/usage.rs index b3f688909..d341c3b52 100644 --- a/cli/src/usage.rs +++ b/cli/src/usage.rs @@ -274,6 +274,7 @@ impl Modification { /// Usage documentation for a report property (which may be used for sorting, as a column, or /// both). +#[allow(dead_code)] #[derive(Debug, Default)] pub(crate) struct ReportProperty { /// Name of the property