Skip to content

Commit 5f13cc1

Browse files
committed
Fmt
1 parent 805d3f8 commit 5f13cc1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

crates/bitwarden-ffi-macros/src/extern_wasm_channel.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,29 @@ pub(crate) fn extern_wasm_channel_internal(
3131
get_bindgen_attr(&input, &input.attrs)?;
3232

3333
// Extract the type and functions from the foreign module.
34-
// This will also transform the functions to use JsValue as the return type for the extern block.
34+
// This will also transform the functions to use JsValue as the return type for the extern
35+
// block.
3536
let Items { ident, functions } = Items::process_items(&mut input)?;
3637

3738
// Prepend the ident with Channel
3839
let channel_ident = quote::format_ident!("Channel{ident}");
3940
let channel_command_ident = quote::format_ident!("Channel{ident}Command");
4041

41-
// Generate the command struct used in the sent messages between the WASM implementation and the IPC implementation
42+
// Generate the command struct used in the sent messages between the WASM implementation and the
43+
// IPC implementation
4244
let command_struct = generate_command_struct(&channel_command_ident, &functions);
4345

44-
// Generate all the functions in the IPC implementation that will call the WASM impl through channels
46+
// Generate all the functions in the IPC implementation that will call the WASM impl through
47+
// channels
4548
let channel_impl = generate_channel_impl(
4649
&channel_ident,
4750
&channel_command_ident,
4851
&functions,
4952
&attr_args,
5053
);
5154

52-
// Generate the function that, given a WASM instance, creates the channel implementation, and starts the message passing task
55+
// Generate the function that, given a WASM instance, creates the channel implementation, and
56+
// starts the message passing task
5357
let channel_init =
5458
generate_channel_init(&ident, &channel_ident, &channel_command_ident, &functions);
5559

0 commit comments

Comments
 (0)