Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Sep 11, 2024
1 parent 8055f30 commit 508752f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ pub struct z_open_options_t {
/// Constructs the default value for `z_open_options_t`.
#[no_mangle]
pub extern "C" fn z_open_options_default(this_: &mut MaybeUninit<z_open_options_t>) {
this_.write(z_open_options_t {
_dummy: 0,
});
this_.write(z_open_options_t { _dummy: 0 });
}

/// Constructs and opens a new Zenoh session.
Expand Down Expand Up @@ -146,9 +144,7 @@ pub struct z_close_options_t {
/// Constructs the default value for `z_close_options_t`.
#[no_mangle]
pub extern "C" fn z_close_options_default(this_: &mut MaybeUninit<z_close_options_t>) {
this_.write(z_close_options_t {
_dummy: 0,
});
this_.write(z_close_options_t { _dummy: 0 });
}

/// Closes a zenoh session. This alos drops and invalidates `session`.
Expand Down

0 comments on commit 508752f

Please sign in to comment.