aboutsummaryrefslogtreecommitdiff
path: root/src/traits.rs
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-02-03 10:20:45 -0500
committerJack O'Connor <[email protected]>2020-02-03 10:21:27 -0500
commit0651736ff45ba030a4933bf6f9cc5f38f8e87b19 (patch)
tree0018adf5f818fee5d9521aa2562736ea11b53f31 /src/traits.rs
parent9ffe377d454f8f3fbb289370b3b8ad916e33779d (diff)
make the inherent reset() method return &mut self
Diffstat (limited to 'src/traits.rs')
-rw-r--r--src/traits.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traits.rs b/src/traits.rs
index 0d9279d..0c24b45 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -84,7 +84,7 @@ mod test {
// Trait implementations.
let mut hasher2: crate::Hasher = digest::Digest::new();
digest::Digest::input(&mut hasher2, b"xxx");
- digest::Digest::reset(&mut hasher2); // avoid the reset() inherent method
+ digest::Digest::reset(&mut hasher2);
digest::Digest::input(&mut hasher2, b"foo");
digest::Digest::input(&mut hasher2, b"bar");
digest::Digest::input(&mut hasher2, b"baz");