summaryrefslogtreecommitdiffstats
path: root/buffered-reader/src/dup.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 18:45:55 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit76f2e0ed8e30a0d1cde749f3444bd8a4c81bea87 (patch)
tree0085cfecde9d35b15c98fc8650734ecf5d61358f /buffered-reader/src/dup.rs
parentbaecfecbf953aa9e40f16084b927f35b69efc8f0 (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.rs2
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.