fix a few lints in clippy 1.57

This commit is contained in:
Dustin J. Mitchell
2021-12-20 16:35:55 +00:00
parent acd4aefc17
commit 4fa1f9c6bc
2 changed files with 2 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ impl TryFrom<&toml::Value> for Report {
.map(|(i, v)| { .map(|(i, v)| {
v.as_str() v.as_str()
.ok_or_else(|| anyhow!(".filter[{}]: not a string", i)) .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)) .map_err(|e| anyhow!(".filter[{}]: {}", i, e))
}) })
.collect::<Result<Vec<_>>>()?, .collect::<Result<Vec<_>>>()?,

View File

@@ -274,6 +274,7 @@ impl Modification {
/// Usage documentation for a report property (which may be used for sorting, as a column, or /// Usage documentation for a report property (which may be used for sorting, as a column, or
/// both). /// both).
#[allow(dead_code)]
#[derive(Debug, Default)] #[derive(Debug, Default)]
pub(crate) struct ReportProperty { pub(crate) struct ReportProperty {
/// Name of the property /// Name of the property