Skip to content

Commit 69b8c74

Browse files
committed
zephyr: rustfmt update
Update formatting to match rustfmt. Signed-off-by: David Brown <[email protected]>
1 parent a1c5f61 commit 69b8c74

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

zephyr/src/work.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,14 @@
178178
extern crate alloc;
179179

180180
use core::{
181-
cell::UnsafeCell, convert::Infallible, ffi::{c_int, c_uint, CStr}, future::Future, mem, pin::Pin, ptr, task::Poll
181+
cell::UnsafeCell,
182+
convert::Infallible,
183+
ffi::{c_int, c_uint, CStr},
184+
future::Future,
185+
mem,
186+
pin::Pin,
187+
ptr,
188+
task::Poll,
182189
};
183190

184191
use zephyr_sys::{
@@ -188,8 +195,7 @@ use zephyr_sys::{
188195
};
189196

190197
use crate::{
191-
error::to_result_void, kio::ContextExt, object::Fixed, simpletls::StaticTls,
192-
sync::Arc,
198+
error::to_result_void, kio::ContextExt, object::Fixed, simpletls::StaticTls, sync::Arc,
193199
sys::thread::ThreadStack, time::Timeout,
194200
};
195201

@@ -615,10 +621,7 @@ impl<T: SimpleAction + Send> Work<T> {
615621
/// Submit this work to a specified work queue.
616622
///
617623
/// TODO: Change when we have better wrappers for work queues.
618-
pub fn submit_to_queue(
619-
this: Pin<Arc<Self>>,
620-
queue: &WorkQueue,
621-
) -> crate::Result<SubmitResult> {
624+
pub fn submit_to_queue(this: Pin<Arc<Self>>, queue: &WorkQueue) -> crate::Result<SubmitResult> {
622625
let work = this.work.get();
623626

624627
// "leak" the arc to give to C. We'll reconstruct it in the handler.

0 commit comments

Comments
 (0)