git.delta.rocks / jrsonnet / refs/commits / 6d08ea9d576f

difftreelog

style fix formatting

Yaroslav Bolyukin2023-08-13parent: #773438d.patch.diff
in: master

4 files changed

modifiedcrates/jrsonnet-evaluator/src/function/mod.rsdiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/src/function/mod.rs
+++ b/crates/jrsonnet-evaluator/src/function/mod.rs
@@ -12,10 +12,7 @@
 	native::NativeDesc,
 	parse::{parse_default_function_call, parse_function_call},
 };
-use crate::{
-	evaluate, evaluate_trivial, gc::TraceBox, tb, Context, ContextBuilder, Result,
-	Val,
-};
+use crate::{evaluate, evaluate_trivial, gc::TraceBox, tb, Context, ContextBuilder, Result, Val};
 
 pub mod arglike;
 pub mod builtin;
modifiedcrates/jrsonnet-evaluator/src/integrations/serde.rsdiffbeforeafterboth

no syntactic changes

modifiedcrates/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
modifiedcrates/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();