summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/s2k.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-20 17:44:16 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-20 17:44:16 +0200
commit96c3ebd47138ea4ee044fea9fc4dc967c76f263f (patch)
tree087392d8bb520f27106eb95d249f87db506dbb01 /openpgp/src/crypto/s2k.rs
parente06debf8e72a3422e84aff2a810ec8a295dd7468 (diff)
openpgp: Drop implementation of Copy for S2K.
Diffstat (limited to 'openpgp/src/crypto/s2k.rs')
-rw-r--r--openpgp/src/crypto/s2k.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/s2k.rs b/openpgp/src/crypto/s2k.rs
index 2e1fe08b..b99e1a56 100644
--- a/openpgp/src/crypto/s2k.rs
+++ b/openpgp/src/crypto/s2k.rs
@@ -33,7 +33,7 @@ use rand::Rng;
///
/// Note: This enum cannot be exhaustively matched to allow future
/// extensions.
-#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
+#[derive(Clone, PartialEq, Eq, Hash, Debug)]
pub enum S2K {
/// Repeatently hashes the password with a public `salt` value.
Iterated {
@@ -302,7 +302,7 @@ impl S2K {
impl fmt::Display for S2K {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
#[allow(deprecated)]
- match *self {
+ match self {
S2K::Simple{ hash } =>
f.write_fmt(format_args!("Simple S2K with {}", hash)),
S2K::Salted{ hash, salt } => {