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. |
||
|---|---|---|
| .. | ||
| static | ||
| escape.rs | ||
| format.rs | ||
| highlight.rs | ||
| item_type.rs | ||
| layout.rs | ||
| markdown.rs | ||
| render.rs | ||
| static_files.rs | ||
| toc.rs | ||