From eb02088ca976cb46e32b5622c2e6c3e1a52cc0bd Mon Sep 17 00:00:00 2001 From: amrbashir Date: Mon, 28 Oct 2024 16:24:29 +0300 Subject: [PATCH] add TODO --- crates/tauri-macros/src/command/wrapper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tauri-macros/src/command/wrapper.rs b/crates/tauri-macros/src/command/wrapper.rs index d8043e33d..4babd0dbb 100644 --- a/crates/tauri-macros/src/command/wrapper.rs +++ b/crates/tauri-macros/src/command/wrapper.rs @@ -186,6 +186,8 @@ pub fn wrapper(attributes: TokenStream, item: TokenStream) -> TokenStream { // only implemented by `Result`. That way we don't exclude renamed result types // which we wouldn't otherwise be able to detect purely from the token stream. // The "error message" displayed to the user is simply the trait name. + // + // TODO: remove this check once our MSRV is high enough let diagnostic = if is_rustc_at_least(1, 78) { quote!(#[diagnostic::on_unimplemented(message = "async commands that contain references as inputs must return a `Result`")]) } else {