Rename fs::read_string to read_to_string and stabilize
This commit is contained in:
parent
4379c86fe7
commit
6b7627f8c9
3 changed files with 8 additions and 7 deletions
|
@ -1067,7 +1067,7 @@ impl<'a> SourceCollector<'a> {
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
let contents = fs::read_string(&p)?;
|
||||
let contents = fs::read_to_string(&p)?;
|
||||
|
||||
// Remove the utf-8 BOM if any
|
||||
let contents = if contents.starts_with("\u{feff}") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue