git.delta.rocks / jrsonnet / refs/commits / 6451b30ca5f3

difftreelog

style fix clippy warnings

Yaroslav Bolyukin2021-07-12parent: #8a68344.patch.diff
in: master

2 files changed

modifiedcrates/jrsonnet-evaluator/src/builtin/mod.rsdiffbeforeafterboth
396396
397fn frexp(s: f64) -> (f64, i16) {397fn frexp(s: f64) -> (f64, i16) {
398 if 0.0 == s {398 if 0.0 == s {
399 return (s, 0);399 (s, 0)
400 } else {400 } else {
401 let lg = s.abs().log2();401 let lg = s.abs().log2();
402 let x = (lg - lg.floor() - 1.0).exp2();402 let x = (lg - lg.floor() - 1.0).exp2();
modifiedcrates/jrsonnet-evaluator/src/typed.rsdiffbeforeafterboth
32 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}