-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(runtime/permissions): use concrete error types #26464
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me, I'd like to get second pair of eyes on it before we land. @dsherret could you please take a look?
Signed-off-by: Leo Kettmeir <[email protected]>
) | ||
.map_err(WebsocketError::Permission)?; | ||
state.borrow_mut::<WP>().check_net_url( | ||
&url::Url::parse(&url).map_err(WebsocketError::Url)?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this shouldn't be parsing/allocating when we have full permissions (I'll look into this later)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than PrompterError.
# Conflicts: # cli/npm/byonm.rs # runtime/permissions/lib.rs
No description provided.