浏览代码

fix router macro mixed core crate by clearify `core::` -> `::core::` (#4350)

zhiyanzhaijie 2 天之前
父节点
当前提交
c3c7e5f705
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router-macro/src/lib.rs

+ 1 - 1
packages/router-macro/src/lib.rs

@@ -513,7 +513,7 @@ impl RouteEnum {
         });
 
         quote! {
-            impl<'a> core::convert::TryFrom<&'a str> for #name {
+            impl<'a> ::core::convert::TryFrom<&'a str> for #name {
                 type Error = <Self as std::str::FromStr>::Err;
 
                 fn try_from(s: &'a str) -> ::std::result::Result<Self, Self::Error> {