From 96e19f1b28e9ad3a58864b41a9d6e25ed255dac6 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 26 Mar 2026 16:24:37 +0800 Subject: Remove unnecessary to_string calls in debug traces --- src/bin/jvn_comp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/jvn_comp.rs b/src/bin/jvn_comp.rs index d0b258a..b9b0015 100644 --- a/src/bin/jvn_comp.rs +++ b/src/bin/jvn_comp.rs @@ -114,9 +114,9 @@ fn main() { let default_result = default_comp(&ctx); #[cfg(debug_assertions)] - trace!("specific_result: {}", specific_result.to_string()); + trace!("specific_result: {}", specific_result); #[cfg(debug_assertions)] - trace!("default_result: {}", default_result.to_string()); + trace!("default_result: {}", default_result); let combined_result = match (specific_result, default_result) { (CompletionResult::FileCompletion, CompletionResult::FileCompletion) => { @@ -230,7 +230,7 @@ fn specific_comp(ctx: &CompletionContext) -> CompletionResult { trace!("Calling match_comp with node: {}", match_node); let result = match_comp(match_node, ctx.clone()); #[cfg(debug_assertions)] - trace!("match_comp returned: {}", result.to_string()); + trace!("match_comp returned: {}", result); result } -- cgit