diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-26 16:24:37 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-26 16:24:37 +0800 |
| commit | 96e19f1b28e9ad3a58864b41a9d6e25ed255dac6 (patch) | |
| tree | 3371202419f4b7cfa3b34f389a5f51fe0ff59894 | |
| parent | c0e321067a1a19754041ac7996267adfea881037 (diff) | |
Remove unnecessary to_string calls in debug tracesdev
| -rw-r--r-- | src/bin/jvn_comp.rs | 6 |
1 files 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 } |
