summaryrefslogtreecommitdiffstats
path: root/buffered-reader/src/dup.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 20:23:44 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit19169b76117db8b1d81f1aafa64a5440d042803d (patch)
treebdd07c05920f6217bd1512e6dc56c1d8fb1da6bf /buffered-reader/src/dup.rs
parent694680ae3b2192c102f1b9a4d342677545cac629 (diff)
Lint: Use is_empty().
- https://rust-lang.github.io/rust-clippy/master/index.html#len_zero - https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
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 df4a6e2f..c63ab9c8 100644
--- a/buffered-reader/src/dup.rs
+++ b/buffered-reader/src/dup.rs
@@ -194,7 +194,7 @@ mod test {
for i in 0..input.len() {
let data = reader.data(DEFAULT_BUF_SIZE + 1).unwrap().to_vec();
- assert!(data.len() > 0);
+ assert!(!data.is_empty());
assert_eq!(data, reader.buffer());
// And, we may as well check to make sure we read the
// right data.