summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 20:06:33 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit694680ae3b2192c102f1b9a4d342677545cac629 (patch)
tree3fcdf4a32ce5f4cb6bda6d330f9b15a973c1d980 /net
parent76f2e0ed8e30a0d1cde749f3444bd8a4c81bea87 (diff)
Lint: Remove redundant lifetime.
- Constants have by default a `'static` lifetime - https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
Diffstat (limited to 'net')
-rw-r--r--net/tests/hkp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tests/hkp.rs b/net/tests/hkp.rs
index f1984529..de248bb8 100644
--- a/net/tests/hkp.rs
+++ b/net/tests/hkp.rs
@@ -14,7 +14,7 @@ use sequoia_openpgp::parse::Parse;
use sequoia_net as net;
use sequoia_net::KeyServer;
-const RESPONSE: &'static str = "-----BEGIN PGP PUBLIC KEY BLOCK-----
+const RESPONSE: &str = "-----BEGIN PGP PUBLIC KEY BLOCK-----
xsBNBFoVcvoBCACykTKOJddF8SSUAfCDHk86cNTaYnjCoy72rMgWJsrMLnz/V16B
J9M7l6nrQ0JMnH2Du02A3w+kNb5q97IZ/M6NkqOOl7uqjyRGPV+XKwt0G5mN/ovg
@@ -46,8 +46,8 @@ Pu1xwz57O4zo1VYf6TqHJzVC3OMvMUM2hhdecMUe5x6GorNaj6g=
-----END PGP PUBLIC KEY BLOCK-----
";
-const FP: &'static str = "3E8877C877274692975189F5D03F6F865226FE8B";
-const ID: &'static str = "D03F6F865226FE8B";
+const FP: &str = "3E8877C877274692975189F5D03F6F865226FE8B";
+const ID: &str = "D03F6F865226FE8B";
async fn service(req: Request<Body>)
-> Result<Response<Body>, Box<dyn std::error::Error + Send + Sync>> {