Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mstallmo committed Aug 3, 2021
1 parent b10c459 commit 4b5a93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse/environment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl<E: EthSpec> Environment<E> {
}
future::Either::Left((Err(e), _)) => Err(e.into()),
future::Either::Right(((res, _, _), _)) => {
res.ok_or("Handler channel closed".to_string())
res.ok_or_else(|| "Handler channel closed".to_string())
}
}
}
Expand Down

0 comments on commit 4b5a93a

Please sign in to comment.