From c7fec3e1ff73f7d857548cab78777a3aaf084c68 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Mon, 25 Jul 2022 16:54:10 +0200 Subject: [PATCH] fix typo in state.rs (#4699) --- .changes/fix-typo-in-state-rs.md | 5 +++++ core/tauri/src/state.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-typo-in-state-rs.md diff --git a/.changes/fix-typo-in-state-rs.md b/.changes/fix-typo-in-state-rs.md new file mode 100644 index 000000000..e61e056b4 --- /dev/null +++ b/.changes/fix-typo-in-state-rs.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Fix typo in invalid state access panic message. diff --git a/core/tauri/src/state.rs b/core/tauri/src/state.rs index c617bd5df..00f911341 100644 --- a/core/tauri/src/state.rs +++ b/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 { 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 ) }))