summaryrefslogtreecommitdiffstats
path: root/ffi-macros
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 /ffi-macros
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 'ffi-macros')
-rw-r--r--ffi-macros/src/rust2c.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs
index 002c6199..8d1d26df 100644
--- a/ffi-macros/src/rust2c.rs
+++ b/ffi-macros/src/rust2c.rs
@@ -2,7 +2,7 @@ use syn;
use quote::ToTokens;
use proc_macro2;
-const PREFIX: &'static str = "pgp_";
+const PREFIX: &str = "pgp_";
/// Derives the C type from the Rust type.
///