Kaynağa Gözat

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

zhiyanzhaijie 2 gün önce
ebeveyn
işleme
c3c7e5f705
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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> {