rust/src/tools/error_index_generator
Andy Russell 2f6226518b
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.
2018-12-07 12:54:11 -05:00
..
Cargo.toml Build rustdoc on-demand. 2017-07-27 05:51:22 -06:00
main.rs use top level fs functions where appropriate 2018-12-07 12:54:11 -05:00