mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix a few lints in clippy 1.57
This commit is contained in:
parent
acd4aefc17
commit
4fa1f9c6bc
2 changed files with 2 additions and 1 deletions
|
@ -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<_>>>()?,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue