diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /cli/tools/fmt.rs | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 832577aa2..9474411b7 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -635,7 +635,7 @@ struct FileContents { } fn read_file_contents(file_path: &Path) -> Result<FileContents, AnyError> { - let file_bytes = fs::read(&file_path) + let file_bytes = fs::read(file_path) .with_context(|| format!("Error reading {}", file_path.display()))?; let charset = text_encoding::detect_charset(&file_bytes); let file_text = text_encoding::convert_to_utf8(&file_bytes, charset)?; |