summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-06 21:24:59 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:58 +0200
commit5d029cbf42621452666bd084f7beecb7d3d885a4 (patch)
tree21219c5864beac97ff5c55c78b436918034adcd6 /openpgp/src/cert.rs
parent9424cd350f32a97479a74d919c646f9e26c2ebce (diff)
Lint: Remove unnecessary conversions.
- https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index 093c0480..1c23987d 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -2161,7 +2161,7 @@ impl Cert {
Tag::SecretKey | Tag::PublicKey => Ok(()),
_ => Err(Error::MalformedCert(
format!("A certificate does not start with a {}",
- tag).into()).into()),
+ tag)).into()),
}
}
@@ -2191,7 +2191,7 @@ impl Cert {
{
Err(Error::MalformedCert(
format!("A certificate cannot not include a {}",
- tag).into()).into())
+ tag)).into())
}
// The rest either definitely belong in a certificate or
// are unknown (and conservatively accepted for future