Merge pull request #321 from djmitche/clippy-1-57-fixes

fix a few lints in clippy 1.57
This commit is contained in:
Dustin J. Mitchell
2021-12-20 18:29:14 -05:00
committed by GitHub
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