Skip to content

Commit

Permalink
fixup! fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed May 19, 2024
1 parent a5ceb37 commit b1d98ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 4 additions & 1 deletion crates/jrsonnet-evaluator/src/error.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 3 additions & 1 deletion crates/jrsonnet-evaluator/src/evaluate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ pub fn evaluate_trivial(expr: &LocExpr) -> Option<Val> {
}
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,
Expand Down
7 changes: 1 addition & 6 deletions crates/jrsonnet-rowan-parser/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ impl CompletedMarker {
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, .. } => {
Expand Down

0 comments on commit b1d98ba

Please sign in to comment.