Skip to content

Commit

Permalink
feat(tracer): fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Jun 18, 2024
1 parent f4f8707 commit 934a39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rundler/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl TryFrom<&CommonArgs> for SimulationSettings {
type Error = anyhow::Error;

fn try_from(value: &CommonArgs) -> Result<Self, Self::Error> {
if let Err(_) = go_parse_duration::parse_duration(&value.tracer_timeout) {
if go_parse_duration::parse_duration(&value.tracer_timeout).is_err() {
bail!("Invalid value for tracer_timeout, must be parsable by the ParseDuration function. See docs https://pkg.go.dev/time#ParseDuration")
}

Expand Down

0 comments on commit 934a39f

Please sign in to comment.