summaryrefslogtreecommitdiff
path: root/ext/web/message_port.rs
diff options
context:
space:
mode:
authorAndreu Botella <andreu@andreubotella.com>2022-05-13 10:36:31 +0200
committerGitHub <noreply@github.com>2022-05-13 10:36:31 +0200
commit3e7afb8918fd0f6cedf839a7ebaae6aaee5e66ad (patch)
tree7fcc92da290889d3d2290f6e4902ac60685aae87 /ext/web/message_port.rs
parent0ee76da07b12fba38962634e65853d73adf9d4c0 (diff)
chore(runtime): Make some ops in ext and runtime infallible. (#14589)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'ext/web/message_port.rs')
-rw-r--r--ext/web/message_port.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/message_port.rs b/ext/web/message_port.rs
index b193e6b9b..06f7e3c52 100644
--- a/ext/web/message_port.rs
+++ b/ext/web/message_port.rs
@@ -109,7 +109,7 @@ impl Resource for MessagePortResource {
#[op]
pub fn op_message_port_create_entangled(
state: &mut OpState,
-) -> Result<(ResourceId, ResourceId), AnyError> {
+) -> (ResourceId, ResourceId) {
let (port1, port2) = create_entangled_message_port();
let port1_id = state.resource_table.add(MessagePortResource {
@@ -122,7 +122,7 @@ pub fn op_message_port_create_entangled(
cancel: CancelHandle::new(),
});
- Ok((port1_id, port2_id))
+ (port1_id, port2_id)
}
#[derive(Deserialize, Serialize)]