difftreelog
style fix formatting
in: master
4 files changed
crates/jrsonnet-evaluator/src/function/mod.rsdiffbeforeafterboth14};14};15use crate::{15use crate::{evaluate, evaluate_trivial, gc::TraceBox, tb, Context, ContextBuilder, Result, Val};16 evaluate, evaluate_trivial, gc::TraceBox, tb, Context, ContextBuilder, Result,17 Val,18};191620pub mod arglike;17pub mod arglike;crates/jrsonnet-evaluator/src/integrations/serde.rsdiffbeforeafterboth--- a/crates/jrsonnet-evaluator/src/integrations/serde.rs
+++ b/crates/jrsonnet-evaluator/src/integrations/serde.rs
@@ -11,8 +11,7 @@
};
use crate::{
- arr::ArrValue, runtime_error, Error as JrError, ObjValue, ObjValueBuilder,
- Result, State, Val,
+ arr::ArrValue, runtime_error, Error as JrError, ObjValue, ObjValueBuilder, Result, State, Val,
};
impl<'de> Deserialize<'de> for Val {
crates/jrsonnet-parser/src/lib.rsdiffbeforeafterboth--- a/crates/jrsonnet-parser/src/lib.rs
+++ b/crates/jrsonnet-parser/src/lib.rs
@@ -635,13 +635,11 @@
el!(
Index {
indexable: el!(Var("std".into()), 1, 4),
- parts: vec![
- IndexPart {
- value: el!(Str("deepJoin".into()), 5, 13),
- #[cfg(feature = "exp-null-coaelse")]
- null_coaelse: false,
- },
- ],
+ parts: vec![IndexPart {
+ value: el!(Str("deepJoin".into()), 5, 13),
+ #[cfg(feature = "exp-null-coaelse")]
+ null_coaelse: false,
+ }],
},
1,
13
crates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth--- a/crates/jrsonnet-stdlib/src/lib.rs
+++ b/crates/jrsonnet-stdlib/src/lib.rs
@@ -349,12 +349,10 @@
std.with_super(self.stdlib_obj.clone());
std.field("thisFile".into())
.hide()
- .value(Val::string(
- match source.source_path().path() {
- Some(p) => self.settings().path_resolver.resolve(p).into(),
- None => source.source_path().to_string().into(),
- },
- ))
+ .value(Val::string(match source.source_path().path() {
+ Some(p) => self.settings().path_resolver.resolve(p).into(),
+ None => source.source_path().to_string().into(),
+ }))
.expect("this object builder is empty");
let stdlib_with_this_file = std.build();