From 8ec6536f5a4dad95d88a3a04876a34f52a9b5380 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Tue, 4 Jun 2024 11:00:20 +0800 Subject: [PATCH] fix: lint --- frb_codegen/src/library/codegen/ir/hir/hierarchical/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_codegen/src/library/codegen/ir/hir/hierarchical/traits.rs b/frb_codegen/src/library/codegen/ir/hir/hierarchical/traits.rs index e2af79c637..764031c3ee 100644 --- a/frb_codegen/src/library/codegen/ir/hir/hierarchical/traits.rs +++ b/frb_codegen/src/library/codegen/ir/hir/hierarchical/traits.rs @@ -32,7 +32,7 @@ impl HirCommon for HirTrait { } fn serialize_item_trait(x: &ItemTrait, s: S) -> Result { - s.serialize_str(&format!("ident={}", x.ident.to_string())) + s.serialize_str(&format!("ident={}", x.ident)) } fn serialize_item_impl(x: &ItemImpl, s: S) -> Result {