mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: clippy warnings, or_fun_call and unnecessary_lazy_evaluations (#846)
This commit is contained in:
@ -97,7 +97,7 @@ fn parse_metrics_attr(node: &DeriveInput) -> Result<MetricsAttr> {
|
||||
}
|
||||
}
|
||||
|
||||
let scope = scope.ok_or(Error::new_spanned(node, "`scope = ..` must be set."))?;
|
||||
let scope = scope.ok_or_else(|| Error::new_spanned(node, "`scope = ..` must be set."))?;
|
||||
Ok(MetricsAttr { scope, separator })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user