diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-25 14:02:16 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:55 +0100 |
commit | 97ce753fefae770ee0b5b02a611d75e29a7cd01d (patch) | |
tree | 862b64d9cee83b283e7c3df99a0c19ca3f78e7e4 /buffered-reader | |
parent | 8a486566e4d2161b2b22c27a98c5bacc349ba3c2 (diff) |
buffered-reader: Allow wrong function name.
- According to the Rust API Guidelines, a conversion function taking
`self` should be called `into_*` if the `self` is not `Copy`, so this
function should be named `into_boxed()`.
- Found with clippy::wrong_self_convention.
Diffstat (limited to 'buffered-reader')
-rw-r--r-- | buffered-reader/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buffered-reader/src/lib.rs b/buffered-reader/src/lib.rs index e973af4e..d9f5b324 100644 --- a/buffered-reader/src/lib.rs +++ b/buffered-reader/src/lib.rs @@ -849,6 +849,7 @@ pub trait BufferedReader<C> : io::Read + fmt::Debug + fmt::Display + Send + Sync } /// Boxes the reader. + #[allow(clippy::wrong_self_convention)] fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a> where Self: 'a + Sized { |