Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/matrix-sdk-base/src/store/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
2 changes: 1 addition & 1 deletion crates/matrix-sdk-crypto/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk-ui/src/notification_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down