From 94cca1d0ec144c1a55e9365f4ba6509a5a2e68ff Mon Sep 17 00:00:00 2001 From: Alex Kao Date: Sat, 11 Jan 2025 13:23:53 +0800 Subject: [PATCH] fix clippy complain --- src/dc_utils/context.rs | 1 - src/structs/user_search_history.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dc_utils/context.rs b/src/dc_utils/context.rs index fc24f73..2308ab9 100644 --- a/src/dc_utils/context.rs +++ b/src/dc_utils/context.rs @@ -8,7 +8,6 @@ pub trait ContextAddon { } /// a trait for `reply` - impl ContextAddon for Context<'_> { async fn typing(&self) -> MyTyping { match self { diff --git a/src/structs/user_search_history.rs b/src/structs/user_search_history.rs index a0ea729..26932b5 100644 --- a/src/structs/user_search_history.rs +++ b/src/structs/user_search_history.rs @@ -38,7 +38,7 @@ impl SearchCache { self.users.get(user_id) } - /// search in cache first then disk, insert if no cache + // /// search in cache first then disk, insert if no cache // pub async fn get_or_insert(&mut self, user_id: &UserId, f: F) -> &UserSearchCache // where // F: FnOnce() -> UserSearchCache,