Skip to content

Commit 170adde

Browse files
committed
Reformatted.
1 parent 0a107da commit 170adde

File tree

2 files changed

+6
-3
lines changed
  • example_apps/example_util/src
  • server/swimos_server_app/src/server

2 files changed

+6
-3
lines changed

example_apps/example_util/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ use tokio::{select, sync::oneshot};
2323
use tracing_subscriber::{filter::LevelFilter, EnvFilter};
2424

2525
pub async fn manage_handle(handle: ServerHandle) {
26-
until_termination(handle, None).await.expect("Failed to register interrupt handler.");
26+
until_termination(handle, None)
27+
.await
28+
.expect("Failed to register interrupt handler.");
2729
}
2830
pub async fn manage_handle_report(
2931
handle: ServerHandle,
@@ -35,7 +37,9 @@ pub async fn manage_handle_report(
3537
});
3638
g
3739
});
38-
until_termination(handle, f).await.expect("Failed to register interrupt handler.");
40+
until_termination(handle, f)
41+
.await
42+
.expect("Failed to register interrupt handler.");
3943
}
4044

4145
struct FormatMap<'a, K, V>(&'a HashMap<K, V>);

server/swimos_server_app/src/server/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ pub mod wait {
151151
mut handle: ServerHandle,
152152
bound: Option<Box<dyn FnOnce(SocketAddr) + Send>>,
153153
) -> Result<(), RegistrationFailed> {
154-
155154
let wait_for_ctrl_c = async move {
156155
let mut result = Ok(());
157156
let mut shutdown_hook = Box::pin(async { tokio::signal::ctrl_c().await });

0 commit comments

Comments
 (0)