File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
36
36
ImplItem :: Fn ( func) => func,
37
37
_ => return Err ( Error :: new_spanned ( item, "Impl block must only contain methods" ) )
38
38
} ;
39
-
39
+
40
40
let span = impl_method. sig . ident . span ( ) ;
41
41
42
42
let tokens = match impl_method. sig . ident . to_string ( ) . as_str ( ) {
@@ -143,7 +143,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
143
143
let v = worker:: js_sys:: Uint8Array :: new( & message) . to_vec( ) ;
144
144
worker:: WebSocketIncomingMessage :: Binary ( v)
145
145
} ;
146
-
146
+
147
147
// SAFETY:
148
148
// On the surface, this is unsound because the Durable Object could be dropped
149
149
// while JavaScript still has possession of the future. However,
@@ -225,7 +225,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
225
225
self . _alarm_raw( ) . await
226
226
}
227
227
} ) ;
228
-
228
+
229
229
let websocket_message_tokens = optional_methods. has_websocket_message . then ( || quote ! {
230
230
async fn websocket_message( & mut self , ws: :: worker:: WebSocket , message: :: worker:: WebSocketIncomingMessage ) -> :: worker:: Result <( ) > {
231
231
self . _websocket_message_raw( ws, message) . await
You can’t perform that action at this time.
0 commit comments