diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 20:06:33 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 694680ae3b2192c102f1b9a4d342677545cac629 (patch) | |
tree | 3fcdf4a32ce5f4cb6bda6d330f9b15a973c1d980 /store | |
parent | 76f2e0ed8e30a0d1cde749f3444bd8a4c81bea87 (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 'store')
-rw-r--r-- | store/src/backend/mod.rs | 2 | ||||
-rw-r--r-- | store/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs index cbfe1f90..4197f43b 100644 --- a/store/src/backend/mod.rs +++ b/store/src/backend/mod.rs @@ -1327,7 +1327,7 @@ impl From<io::Error> for node::Error { /* Database schemata and migrations. */ /* Version 1. */ -const DB_SCHEMA_1: &'static str = " +const DB_SCHEMA_1: &str = " CREATE TABLE version ( id INTEGER PRIMARY KEY, version INTEGER); diff --git a/store/src/lib.rs b/store/src/lib.rs index 1de01573..cc2687de 100644 --- a/store/src/lib.rs +++ b/store/src/lib.rs @@ -110,11 +110,11 @@ pub fn descriptor(c: &Context) -> ipc::Descriptor { } /// Keys used for communications. -pub const REALM_CONTACTS: &'static str = +pub const REALM_CONTACTS: &str = "org.sequoia-pgp.contacts"; /// Keys used for signing software updates. -pub const REALM_SOFTWARE_UPDATES: &'static str = +pub const REALM_SOFTWARE_UPDATES: &str = "org.sequoia-pgp.software-updates"; /// The common key pool. |