diff options
author | Andreu Botella <andreu@andreubotella.com> | 2022-05-13 10:36:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 10:36:31 +0200 |
commit | 3e7afb8918fd0f6cedf839a7ebaae6aaee5e66ad (patch) | |
tree | 7fcc92da290889d3d2290f6e4902ac60685aae87 /ext/web/message_port.rs | |
parent | 0ee76da07b12fba38962634e65853d73adf9d4c0 (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.rs | 4 |
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)] |