From 1c54f44c149e88d1279639c42b3beef7796b7103 Mon Sep 17 00:00:00 2001 From: Richard Carson Date: Sat, 9 Nov 2024 12:43:12 -0500 Subject: [PATCH] Make `PermissionDeniedError` fields pub Signed-off-by: Richard Carson --- runtime/permissions/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/permissions/lib.rs b/runtime/permissions/lib.rs index 6480f4bf58..28a488ad37 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 {