Fix errors
This commit is contained in:
parent
c6b82c7566
commit
584fbde5d1
22 changed files with 51 additions and 110 deletions
|
@ -723,9 +723,9 @@ impl<'a> SourceCollector<'a> {
|
|||
|
||||
// Remove the utf-8 BOM if any
|
||||
let contents = if contents.starts_with("\ufeff") {
|
||||
contents.as_slice().slice_from(3)
|
||||
contents.slice_from(3)
|
||||
} else {
|
||||
contents.as_slice()
|
||||
contents
|
||||
};
|
||||
|
||||
// Create the intermediate directories
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue