diff --git a/Cargo.toml b/Cargo.toml index bbf0861..0ccc74a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "md5" -version = "0.5.0" +version = "0.6.0" license = "Apache-2.0/MIT" authors = [ "Ivan Ukhov ", diff --git a/src/lib.rs b/src/lib.rs index d5cce6c..ee69cf0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,7 +84,7 @@ implement!(LowerHex, "{:02x}"); implement!(UpperHex, "{:02X}"); /// A context. -#[derive(Copy)] +#[derive(Clone)] pub struct Context { buffer: [u8; 64], count: [u32; 2], @@ -148,13 +148,6 @@ impl Context { } } -impl Clone for Context { - #[inline] - fn clone(&self) -> Context { - *self - } -} - impl From for Digest { #[inline] fn from(context: Context) -> Digest {