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 029eba3 commit 1a94ee5
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 @@ -34,7 +34,7 @@ pub(crate) fn compile(compiler: &Compiler) -> Result<Compilation> {
// https://github.com/rust-lang/rfcs/issues/2428
let source = match file.source.strip_prefix("\u{feff}") {
None => file.source.as_str(),
Some(sanitized_string) => sanitized_string
Some(sanitized_string) => sanitized_string,
};
source.chars().map(|c| c as u32).collect()
})
Expand Down

0 comments on commit 1a94ee5

Please sign in to comment.