Skip to content

Commit

Permalink
Merge pull request #16 from stainless-steel/no-copy
Browse files Browse the repository at this point in the history
Do not derive Copy for Context
  • Loading branch information
IvanUkhov authored Nov 3, 2018
2 parents 401cdb9 + 273f6bb commit dc0e23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "md5"
version = "0.5.0"
version = "0.6.0"
license = "Apache-2.0/MIT"
authors = [
"Ivan Ukhov <[email protected]>",
Expand Down
9 changes: 1 addition & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -148,13 +148,6 @@ impl Context {
}
}

impl Clone for Context {
#[inline]
fn clone(&self) -> Context {
*self
}
}

impl From<Context> for Digest {
#[inline]
fn from(context: Context) -> Digest {
Expand Down

0 comments on commit dc0e23a

Please sign in to comment.