difftreelog
style fix clippy warnings
in: master
2 files changed
crates/jrsonnet-evaluator/src/builtin/mod.rsdiffbeforeafterboth--- a/crates/jrsonnet-evaluator/src/builtin/mod.rs
+++ b/crates/jrsonnet-evaluator/src/builtin/mod.rs
@@ -396,7 +396,7 @@
fn frexp(s: f64) -> (f64, i16) {
if 0.0 == s {
- return (s, 0);
+ (s, 0)
} else {
let lg = s.abs().log2();
let x = (lg - lg.floor() - 1.0).exp2();
crates/jrsonnet-evaluator/src/typed.rsdiffbeforeafterboth32 UnionFailed(ComplexValType, TypeLocErrorList),32 UnionFailed(ComplexValType, TypeLocErrorList),33 #[error(33 #[error(34 "number out of bounds: {0} not in {}..{}",34 "number out of bounds: {0} not in {}..{}",35 .1.map(|v|v.to_string()).unwrap_or("".to_owned()),35 .1.map(|v|v.to_string()).unwrap_or_else(|| "".to_owned()),36 .2.map(|v|v.to_string()).unwrap_or("".to_owned()),36 .2.map(|v|v.to_string()).unwrap_or_else(|| "".to_owned()),37 )]37 )]38 BoundsFailed(f64, Option<f64>, Option<f64>),38 BoundsFailed(f64, Option<f64>, Option<f64>),39}39}