From e8e33963801b63d03a2b6d5f872348add2cecc56 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 11 Apr 2026 19:17:45 +0800 Subject: Apply clippy suggestions and remove unused serde dependency --- mingling_core/src/asset/comp.rs | 2 +- mingling_core/src/asset/comp/suggest.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_core/src/asset') diff --git a/mingling_core/src/asset/comp.rs b/mingling_core/src/asset/comp.rs index c7fe719..40482fd 100644 --- a/mingling_core/src/asset/comp.rs +++ b/mingling_core/src/asset/comp.rs @@ -46,7 +46,7 @@ impl CompletionHelper { let program = this::

(); let args = ctx.all_words.iter().skip(1).cloned().collect::>(); - let suggest = if let Some((dispatcher, args)) = match_user_input(program, args).ok() { + let suggest = if let Ok((dispatcher, args)) = match_user_input(program, args) { trace!( "dispatcher matched, dispatcher=\"{}\", args={:?}", dispatcher.node().to_string(), diff --git a/mingling_core/src/asset/comp/suggest.rs b/mingling_core/src/asset/comp/suggest.rs index 55a874f..81000d5 100644 --- a/mingling_core/src/asset/comp/suggest.rs +++ b/mingling_core/src/asset/comp/suggest.rs @@ -80,7 +80,7 @@ impl PartialOrd for SuggestItem { impl Ord for SuggestItem { fn cmp(&self, other: &Self) -> std::cmp::Ordering { - self.suggest().cmp(&other.suggest()) + self.suggest().cmp(other.suggest()) } } -- cgit