Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Dec 19, 2024
1 parent 2a7e7bc commit c28f63a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/preprocessor/src/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ pub fn file(path: &WorkspacePath) -> Result<Vec<Arc<Token>>, Error> {
}

/// Parse a string into tokens
///
///
/// # Errors
/// If the string is invalid
///
///
/// # Panics
/// If the string is invalid
pub fn str(source: &str, path: &WorkspacePath) -> Result<Vec<Arc<Token>>, Error> {
Expand Down
3 changes: 1 addition & 2 deletions libs/preprocessor/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ impl Processor {

processor.file_stack.push(path.clone());

let tokens =
crate::parse::file(path).map_err(|e| (processor.included_files.clone(), e))?;
let tokens = crate::parse::file(path).map_err(|e| (processor.included_files.clone(), e))?;
let mut pragma = Pragma::root();
let mut buffer = Vec::with_capacity(tokens.len());
let mut stream = tokens.into_iter().peekmore();
Expand Down

0 comments on commit c28f63a

Please sign in to comment.