diff options
author | Richard Carson <Rscarson@rogers.com> | 2024-11-12 12:49:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 17:49:49 +0000 |
commit | 01f3451869f56dc0651d8cd30bf8540aeb462c04 (patch) | |
tree | 66213b19d200b8f3b3461141c3cf43081f564638 /runtime | |
parent | c371b2a492c60f47ce6b96b4df129c5d01706e1b (diff) |
chore: make fields public on `PermissionDeniedError` and `deno_kv::KvConfig` (#26798)
A few small changes to avoid needing unsafe mem transmutes to
instantiate the extensions
---------
Signed-off-by: Richard Carson <Rscarson@rogers.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/permissions/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/permissions/lib.rs b/runtime/permissions/lib.rs index 3aa5aabb3..71ef7d228 100644 --- a/runtime/permissions/lib.rs +++ b/runtime/permissions/lib.rs @@ -40,8 +40,8 @@ pub use prompter::PromptResponse; #[derive(Debug, thiserror::Error)] #[error("Requires {access}, {}", format_permission_error(.name))] pub struct PermissionDeniedError { - access: String, - name: &'static str, + pub access: String, + pub name: &'static str, } fn format_permission_error(name: &'static str) -> String { |