From 1cac90be0ee158ec3b5d2817000509b4da4c8f81 Mon Sep 17 00:00:00 2001 From: mgt Date: Tue, 7 May 2024 11:21:13 +0800 Subject: [PATCH] chore: fix clippy ci --- crates/mitex-lexer/src/snapshot_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/mitex-lexer/src/snapshot_map.rs b/crates/mitex-lexer/src/snapshot_map.rs index 0dc612f..748e604 100644 --- a/crates/mitex-lexer/src/snapshot_map.rs +++ b/crates/mitex-lexer/src/snapshot_map.rs @@ -93,10 +93,10 @@ where } } - pub fn get(&self, k: &Q) -> Option<&V> + pub fn get(&self, k: &Q) -> Option<&V> where K: Borrow, - Q: Hash + Eq, + Q: Hash + Eq + ?Sized, { self.map.borrow().get(k) }