git.delta.rocks / jrsonnet / refs/commits / ec4da3e118ba

difftreelog

fixup! fix formatting

Yaroslav Bolyukin2024-06-18parent: #afe1286.patch.diff
in: master

3 files changed

modifiedcrates/jrsonnet-evaluator/src/error.rsdiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/src/error.rs
+++ b/crates/jrsonnet-evaluator/src/error.rs
@@ -1,5 +1,8 @@
 use std::{
-	cmp::Ordering, convert::Infallible, fmt::{Debug, Display}, path::PathBuf
+	cmp::Ordering,
+	convert::Infallible,
+	fmt::{Debug, Display},
+	path::PathBuf,
 };
 
 use jrsonnet_gcmodule::Trace;
modifiedcrates/jrsonnet-evaluator/src/evaluate/mod.rsdiffbeforeafterboth
37 }37 }
38 Some(match &*expr.0 {38 Some(match &*expr.0 {
39 Expr::Str(s) => Val::string(s.clone()),39 Expr::Str(s) => Val::string(s.clone()),
40 Expr::Num(n) => Val::Num(NumValue::new(*n).expect("parser will not allow non-finite values")),40 Expr::Num(n) => {
41 Val::Num(NumValue::new(*n).expect("parser will not allow non-finite values"))
42 }
41 Expr::Literal(LiteralType::False) => Val::Bool(false),43 Expr::Literal(LiteralType::False) => Val::Bool(false),
42 Expr::Literal(LiteralType::True) => Val::Bool(true),44 Expr::Literal(LiteralType::True) => Val::Bool(true),
43 Expr::Literal(LiteralType::Null) => Val::Null,45 Expr::Literal(LiteralType::Null) => Val::Null,
modifiedcrates/jrsonnet-rowan-parser/src/marker.rsdiffbeforeafterboth
--- a/crates/jrsonnet-rowan-parser/src/marker.rs
+++ b/crates/jrsonnet-rowan-parser/src/marker.rs
@@ -141,12 +141,7 @@
 		new_m
 	}
 	/// Create new node around existing marker, not counting anything that comes after it
-	fn wrap_raw(
-		self,
-		p: &mut Parser,
-		kind: SyntaxKind,
-		error: Option<SyntaxError>,
-	) -> Self {
+	fn wrap_raw(self, p: &mut Parser, kind: SyntaxKind, error: Option<SyntaxError>) -> Self {
 		let new_m = p.start();
 		match &mut p.events[self.start_event_idx] {
 			Event::Start { forward_parent, .. } => {