Skip to content

Commit bcc9ee4

Browse files
committed
zephyr: embassy: Add Default implementation
Clippy complains about a no-argument `new()` method without an accompanying Default. It doesn't hurt anything to add, and could make this potentially slightly more useful. Signed-off-by: David Brown <[email protected]>
1 parent a458d8e commit bcc9ee4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zephyr/src/embassy/executor.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ impl Executor {
5252
}
5353
}
5454

55+
impl Default for Executor {
56+
fn default() -> Self {
57+
Self::new()
58+
}
59+
}
60+
5561
#[export_name = "__pender"]
5662
fn __pender(context: *mut ()) {
5763
unsafe {

0 commit comments

Comments
 (0)