Explorar o código

fix(macros): use full path to Result to avoid issues with type aliases (#7071)

Lucas Fernandes Nogueira %!s(int64=2) %!d(string=hai) anos
pai
achega
27c5f364a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/tauri-macros/src/command/wrapper.rs

+ 1 - 1
core/tauri-macros/src/command/wrapper.rs

@@ -145,7 +145,7 @@ pub fn wrapper(attributes: TokenStream, item: TokenStream) -> TokenStream {
               #[allow(unreachable_code, clippy::diverging_sub_expression)]
               const _: () = if false {
                 trait AsyncCommandMustReturnResult {}
-                impl<A, B> AsyncCommandMustReturnResult for Result<A, B> {}
+                impl<A, B> AsyncCommandMustReturnResult for ::std::result::Result<A, B> {}
                 let _check: #return_type = unreachable!();
                 let _: &dyn AsyncCommandMustReturnResult = &_check;
               };