use top level `fs` functions where appropriate This commit replaces many usages of `File::open` and reading or writing with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code complexity, and will improve performance for most reads, since the functions allocate the buffer to be the size of the file. I believe that this commit will not impact behavior in any way, so some matches will check the error kind in case the file was not valid UTF-8. Some of these cases may not actually care about the error. |
||
|---|---|---|
| .. | ||
| Cargo.toml | ||
| codegen_backend.rs | ||
| lib.rs | ||
| link.rs | ||
| symbol_names.rs | ||
| symbol_names_test.rs | ||