Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vic1707 committed Sep 24, 2023
1 parent a4c8095 commit 49db0e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use core::str;
/* Crate imports */
use crate::{
element::{BinOp, Element, FunctionCall, UnOp},
token::{Identifier, Operator},
macros::{trust_me, yeet},
token::{Identifier, Operator},
};
/* Constants */
pub const NO_PERCEDENCE: usize = 0;
Expand Down Expand Up @@ -94,7 +94,9 @@ impl<'a> Parser<'a> {
self.skip_while(u8::is_ascii_lowercase);
let end = self.cursor;

let ident = trust_me!(str::from_utf8_unchecked(self.input.get(start..end).ok_or("Unreachable")?));
let ident = trust_me!(str::from_utf8_unchecked(
self.input.get(start..end).ok_or("Unreachable")?
));

Ok(ident.into())
}
Expand Down

0 comments on commit 49db0e7

Please sign in to comment.