From 66fe5d81bc1fcc7ce9dbf972ea6fe9fbfd56d65c Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 6 Mar 2022 20:34:19 -0300 Subject: [PATCH] chore: small tweak to the serde CommandArg impl for cargo 1.61.0-nightly The nightly version 1.61.0 of Cargo is failing to generate JSON documentation for this implementation, so we're helping it a little bit by changing `Self` to `D` since that's where their assert is failing --- core/tauri/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tauri/src/command.rs b/core/tauri/src/command.rs index 2750be494..3169b29b3 100644 --- a/core/tauri/src/command.rs +++ b/core/tauri/src/command.rs @@ -49,7 +49,7 @@ pub trait CommandArg<'de, R: Runtime>: Sized { /// Automatically implement [`CommandArg`] for any type that can be deserialized. impl<'de, D: Deserialize<'de>, R: Runtime> CommandArg<'de, R> for D { - fn from_command(command: CommandItem<'de, R>) -> Result { + fn from_command(command: CommandItem<'de, R>) -> Result { let name = command.name; let arg = command.key; Self::deserialize(command).map_err(|e| crate::Error::InvalidArgs(name, arg, e).into())