Fix Rust 1.74 warnings (#5702)

Fixes new warnings and clippy changes introduced by version 1.74 of the
rust compiler toolchain.
This commit is contained in:
Arpad Müller
2023-10-28 03:47:26 +02:00
committed by GitHub
parent 2bd79906d9
commit bd59349af3
8 changed files with 31 additions and 33 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ pub struct CacheOptions {
impl CacheOptions {
/// Default options for [`crate::console::provider::NodeInfoCache`].
pub const DEFAULT_OPTIONS_NODE_INFO: &str = "size=4000,ttl=4m";
pub const DEFAULT_OPTIONS_NODE_INFO: &'static str = "size=4000,ttl=4m";
/// Parse cache options passed via cmdline.
/// Example: [`Self::DEFAULT_OPTIONS_NODE_INFO`].