mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix typo in state.rs (#4699)
This commit is contained in:
committed by
GitHub
parent
fd4c851ee9
commit
c7fec3e1ff
5
.changes/fix-typo-in-state-rs.md
Normal file
5
.changes/fix-typo-in-state-rs.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fix typo in invalid state access panic message.
|
||||
@@ -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
|
||||
)
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user