diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 18:45:55 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 76f2e0ed8e30a0d1cde749f3444bd8a4c81bea87 (patch) | |
tree | 0085cfecde9d35b15c98fc8650734ecf5d61358f /buffered-reader/src/dup.rs | |
parent | baecfecbf953aa9e40f16084b927f35b69efc8f0 (diff) |
Lint: Remove redundant returns.
- https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
Diffstat (limited to 'buffered-reader/src/dup.rs')
-rw-r--r-- | buffered-reader/src/dup.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buffered-reader/src/dup.rs b/buffered-reader/src/dup.rs index d5ef6624..df4a6e2f 100644 --- a/buffered-reader/src/dup.rs +++ b/buffered-reader/src/dup.rs @@ -57,7 +57,7 @@ impl<T: BufferedReader<C>, C: fmt::Debug + Sync + Send> Dup<T, C> { /// Returns the number of bytes that this reader has consumed. pub fn total_out(&self) -> usize { - return self.cursor; + self.cursor } /// Resets the cursor to the beginning of the stream. |