Jonas Kruckenberg 3 жил өмнө
parent
commit
c7fec3e1ff

+ 5 - 0
.changes/fix-typo-in-state-rs.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Fix typo in invalid state access panic message.

+ 1 - 1
core/tauri/src/state.rs

@@ -47,7 +47,7 @@ impl<'r, 'de: 'r, T: Send + Sync + 'static, R: Runtime> CommandArg<'de, R> for S
   fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError> {
     Ok(command.message.state_ref().try_get().unwrap_or_else(|| {
       panic!(
-        "state not managed for field `{}` on command `{}`. You muse call `.manage()` before using this command",
+        "state not managed for field `{}` on command `{}`. You must call `.manage()` before using this command",
         command.key, command.name
       )
     }))