Skip to content

Commit c79bdec

Browse files
committed
Remove unnecessary parenthesis
1 parent 9114222 commit c79bdec

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/esp/src/bin/basic_enet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ macro_rules! mk_static {
4141
($t:ty,$val:expr) => {{
4242
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
4343
#[deny(unused_attributes)]
44-
let x = STATIC_CELL.uninit().write(($val));
44+
let x = STATIC_CELL.uninit().write($val);
4545
x
4646
}};
4747
}

examples/esp/src/bin/basic_udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ macro_rules! mk_static {
3636
($t:ty,$val:expr) => {{
3737
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
3838
#[deny(unused_attributes)]
39-
let x = STATIC_CELL.uninit().write(($val));
39+
let x = STATIC_CELL.uninit().write($val);
4040
x
4141
}};
4242
}

examples/esp/src/bin/srp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ macro_rules! mk_static {
4141
($t:ty,$val:expr) => {{
4242
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
4343
#[deny(unused_attributes)]
44-
let x = STATIC_CELL.uninit().write(($val));
44+
let x = STATIC_CELL.uninit().write($val);
4545
x
4646
}};
4747
}

examples/nrf/src/bin/basic_enet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ macro_rules! mk_static {
5050
($t:ty,$val:expr) => {{
5151
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
5252
#[deny(unused_attributes)]
53-
let x = STATIC_CELL.uninit().write(($val));
53+
let x = STATIC_CELL.uninit().write($val);
5454
x
5555
}};
5656
}

examples/nrf/src/bin/basic_udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ macro_rules! mk_static {
4343
($t:ty,$val:expr) => {{
4444
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
4545
#[deny(unused_attributes)]
46-
let x = STATIC_CELL.uninit().write(($val));
46+
let x = STATIC_CELL.uninit().write($val);
4747
x
4848
}};
4949
}

0 commit comments

Comments
 (0)