Skip to content

Commit b64ffaf

Browse files
committed
fix formatting
1 parent ed8e8de commit b64ffaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

worker-macros/src/durable_object.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
3636
ImplItem::Fn(func) => func,
3737
_ => return Err(Error::new_spanned(item, "Impl block must only contain methods"))
3838
};
39-
39+
4040
let span = impl_method.sig.ident.span();
4141

4242
let tokens = match impl_method.sig.ident.to_string().as_str() {
@@ -143,7 +143,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
143143
let v = worker::js_sys::Uint8Array::new(&message).to_vec();
144144
worker::WebSocketIncomingMessage::Binary(v)
145145
};
146-
146+
147147
// SAFETY:
148148
// On the surface, this is unsound because the Durable Object could be dropped
149149
// while JavaScript still has possession of the future. However,
@@ -225,7 +225,7 @@ pub fn expand_macro(tokens: TokenStream) -> syn::Result<TokenStream> {
225225
self._alarm_raw().await
226226
}
227227
});
228-
228+
229229
let websocket_message_tokens = optional_methods.has_websocket_message.then(|| quote! {
230230
async fn websocket_message(&mut self, ws: ::worker::WebSocket, message: ::worker::WebSocketIncomingMessage) -> ::worker::Result<()> {
231231
self._websocket_message_raw(ws, message).await

0 commit comments

Comments
 (0)