Rename fs::read_string to read_to_string and stabilize
This commit is contained in:
@@ -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}") {
|
||||
|
||||
Reference in New Issue
Block a user