From ec4da3e118ba934dcf75e17ed41b75679510626b Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sun, 19 May 2024 20:21:34 +0000 Subject: [PATCH] fixup! fix formatting --- --- 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; --- a/crates/jrsonnet-evaluator/src/evaluate/mod.rs +++ b/crates/jrsonnet-evaluator/src/evaluate/mod.rs @@ -37,7 +37,9 @@ } Some(match &*expr.0 { Expr::Str(s) => Val::string(s.clone()), - Expr::Num(n) => Val::Num(NumValue::new(*n).expect("parser will not allow non-finite values")), + Expr::Num(n) => { + Val::Num(NumValue::new(*n).expect("parser will not allow non-finite values")) + } Expr::Literal(LiteralType::False) => Val::Bool(false), Expr::Literal(LiteralType::True) => Val::Bool(true), Expr::Literal(LiteralType::Null) => Val::Null, --- 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, - ) -> Self { + fn wrap_raw(self, p: &mut Parser, kind: SyntaxKind, error: Option) -> Self { let new_m = p.start(); match &mut p.events[self.start_event_idx] { Event::Start { forward_parent, .. } => { -- gitstuff