Skip to content

Commit

Permalink
fix(core): plugin::PermissionState::Unknown wrong display impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Sep 12, 2024
1 parent 9d46877 commit 86d9abd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-permission-state-unknown-case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Fix display implementation of `PermissionState::Unknown` not generating the lowercased `unknown` string.
2 changes: 1 addition & 1 deletion crates/tauri/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ impl std::fmt::Display for PermissionState {
Self::Granted => write!(f, "granted"),
Self::Denied => write!(f, "denied"),
Self::PromptWithRationale => write!(f, "prompt-with-rationale"),
Self::Unknown => write!(f, "Unknown"),
Self::Unknown => write!(f, "unknown"),
}
}
}
Expand Down

0 comments on commit 86d9abd

Please sign in to comment.