From 12d5d67bb5441c9e461ac9e0c5522d8d84730a6b Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Mon, 24 Jun 2024 13:27:23 +0200 Subject: [PATCH] Make clippy happy Signed-off-by: Jens Reidel --- src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.rs b/src/cache.rs index 6f29ac2..6bd3e72 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -43,7 +43,7 @@ pub enum Event { pub struct Guilds(Arc); impl Guilds { - pub fn new(cache: Arc) -> Self { + pub const fn new(cache: Arc) -> Self { Self(cache) }