fix: & without an explicit lifetime name cannot be used here.

This was previously accepted by the compiler but is being phased out;
it will become a hard error in a future release! See https://github.com/
rust-lang/rust/issues/115010.
This commit is contained in:
Ivan Enderlin
2023-09-06 09:37:51 +02:00
parent d6f0635023
commit f13282ea30
3 changed files with 6 additions and 6 deletions

View File

@@ -824,10 +824,10 @@ pub enum StateStoreDataKey<'a> {
impl StateStoreDataKey<'_> {
/// Key to use for the [`SyncToken`][Self::SyncToken] variant.
pub const SYNC_TOKEN: &str = "sync_token";
pub const SYNC_TOKEN: &'static str = "sync_token";
/// Key prefix to use for the [`Filter`][Self::Filter] variant.
pub const FILTER: &str = "filter";
pub const FILTER: &'static str = "filter";
/// Key prefix to use for the [`UserAvatarUrl`][Self::UserAvatarUrl]
/// variant.
pub const USER_AVATAR_URL: &str = "user_avatar_url";
pub const USER_AVATAR_URL: &'static str = "user_avatar_url";
}

View File

@@ -144,7 +144,7 @@ impl std::fmt::Debug for OlmMachine {
}
impl OlmMachine {
const CURRENT_GENERATION_STORE_KEY: &str = "generation-counter";
const CURRENT_GENERATION_STORE_KEY: &'static str = "generation-counter";
/// Create a new memory based OlmMachine.
///

View File

@@ -98,8 +98,8 @@ pub struct NotificationClient {
}
impl NotificationClient {
const CONNECTION_ID: &str = "notifications";
const LOCK_ID: &str = "notifications";
const CONNECTION_ID: &'static str = "notifications";
const LOCK_ID: &'static str = "notifications";
/// Create a new builder for a notification client.
pub async fn builder(