Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warning: function call inside of `unwrap_or` --> src/cmd/validate.rs:957:68 | 957 | Ok(float) => Value::Number(Number::from_f64(float).unwrap_or(Number::from(0))), | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|| Number::from(0))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call = note: `-W clippy::or-fun-call` implied by `-W clippy::nursery` = help: to override `-W clippy::nursery` add `#[allow(clippy::or_fun_call)]`
- Loading branch information