Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim authored May 17, 2024
1 parent 1a94ee5 commit 165eda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/src/compiler/run_compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) fn compile(compiler: &Compiler) -> Result<Compilation> {
// Strip the BOM from the source string if it is present before compiling.
// Rust does not do this by default
// https://github.com/rust-lang/rfcs/issues/2428
let source = match file.source.strip_prefix("\u{feff}") {
let source = match file.source.strip_prefix('\u{feff}') {
None => file.source.as_str(),
Some(sanitized_string) => sanitized_string,
};
Expand Down

0 comments on commit 165eda8

Please sign in to comment.