1
Fork 0

Rename fs::read_string to read_to_string and stabilize

This commit is contained in:
Matt Brubeck 2018-03-30 09:48:18 -07:00
parent 4379c86fe7
commit 6b7627f8c9
3 changed files with 8 additions and 7 deletions

View file

@ -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}") {