diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-05-08 14:37:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 14:37:42 +0200 |
commit | d5f39fd121b8f997dcfb360828f60cee47322ab3 (patch) | |
tree | 4eb4880060a861ac6ddfe27e5f62b8bc756b52b5 /extensions/websocket/lib.rs | |
parent | 4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff) |
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'extensions/websocket/lib.rs')
-rw-r--r-- | extensions/websocket/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/websocket/lib.rs b/extensions/websocket/lib.rs index 0da8d4911..c6752d23b 100644 --- a/extensions/websocket/lib.rs +++ b/extensions/websocket/lib.rs @@ -87,7 +87,7 @@ impl WsStreamResource {} pub fn op_ws_check_permission<WP>( state: &mut OpState, url: String, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> where WP: WebSocketPermissions + 'static, @@ -117,7 +117,7 @@ pub struct CreateResponse { pub async fn op_ws_create<WP>( state: Rc<RefCell<OpState>>, args: CreateArgs, - _bufs: Option<ZeroCopyBuf>, + _: (), ) -> Result<CreateResponse, AnyError> where WP: WebSocketPermissions + 'static, @@ -250,7 +250,7 @@ pub struct CloseArgs { pub async fn op_ws_close( state: Rc<RefCell<OpState>>, args: CloseArgs, - _bufs: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { let rid = args.rid; let msg = Message::Close(args.code.map(|c| CloseFrame { @@ -286,7 +286,7 @@ pub enum NextEventResponse { pub async fn op_ws_next_event( state: Rc<RefCell<OpState>>, rid: ResourceId, - _bufs: Option<ZeroCopyBuf>, + _: (), ) -> Result<NextEventResponse, AnyError> { let resource = state .borrow_mut() |