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
--- 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();
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}