summaryrefslogtreecommitdiff
path: root/runtime/permissions.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-30 09:19:24 -0400
committerGitHub <noreply@github.com>2024-09-30 09:19:24 -0400
commitc8f692057b256dac57342867b7606a74309449fc (patch)
tree7013cefaab540a35cc25ba0c6087655b420a2425 /runtime/permissions.rs
parentefb413bdaa0f5be6d9082d397aae1e20a258c85f (diff)
refactor: bury descriptor parsing in PermissionsContainer (#25936)
Closes https://github.com/denoland/deno/issues/25634
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r--runtime/permissions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs
index 533319c4e..fa62227e0 100644
--- a/runtime/permissions.rs
+++ b/runtime/permissions.rs
@@ -101,7 +101,7 @@ impl deno_permissions::PermissionDescriptorParser
if text.is_empty() {
Err(AnyError::msg("Empty sys not allowed"))
} else {
- Ok(SysDescriptor(text.to_string()))
+ Ok(SysDescriptor::parse(text.to_string())?)
}
}