From 6161f26a72359c56c8e9605d1687aec6e2cbc034 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Tue, 22 Aug 2023 18:50:56 -0700 Subject: [PATCH] clippy: add some static lifetimes Result of `cargo +nightly clippy --workspace --fix`. Apparently, the current version will become illegal in a future version of Rust. --- lib/src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/settings.rs b/lib/src/settings.rs index bceea1bab..6fafb24bc 100644 --- a/lib/src/settings.rs +++ b/lib/src/settings.rs @@ -102,7 +102,7 @@ impl UserSettings { } // Must not be changed to avoid git pushing older commits with no set name - pub const USER_NAME_PLACEHOLDER: &str = "(no name configured)"; + pub const USER_NAME_PLACEHOLDER: &'static str = "(no name configured)"; pub fn user_email(&self) -> String { self.config.get_string("user.email").unwrap_or_default() @@ -118,7 +118,7 @@ impl UserSettings { // Must not be changed to avoid git pushing older commits with no set email // address - pub const USER_EMAIL_PLACEHOLDER: &str = "(no email configured)"; + pub const USER_EMAIL_PLACEHOLDER: &'static str = "(no email configured)"; pub fn operation_timestamp(&self) -> Option { get_timestamp_config(&self.config, "debug.operation-timestamp")