diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2022-01-13 10:48:07 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2022-01-13 10:57:45 -0800 |
| commit | aa0ce4a20ee54eba911f2225644db768f6cad7ec (patch) | |
| tree | db91e7fa6866dfde7a946f13f0455203ea0a5153 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 124555a69e5f65173ec7840000eb8e953d046740 (diff) | |
| download | rust-aa0ce4a20ee54eba911f2225644db768f6cad7ec.tar.gz rust-aa0ce4a20ee54eba911f2225644db768f6cad7ec.zip | |
Remove `&mut` from `io::read_to_string` signature
`@m-ou-se` [realized][1] that because `Read` is implemented for `&mut impl Read`, there's no need to take `&mut` in `io::read_to_string`. Removing the `&mut` from the signature allows users to remove the `&mut` from their calls (and thus pass an owned reader) if they don't use the reader later. [1]: https://github.com/rust-lang/rust/issues/80218#issuecomment-874322129
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
