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)| {
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::<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
/// both).
#[allow(dead_code)]
#[derive(Debug, Default)]
pub(crate) struct ReportProperty {
/// Name of the property