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())