diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-20 10:35:54 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-04-20 10:38:20 +0200 |
commit | a507dbcd756abc7385892d2265e102c7f4dcdcc5 (patch) | |
tree | b1bec29f88a0ffd9f645292b146c5f082b88241d /tedge | |
parent | 0993d522d135d791e6f9dffb69044b25c2a18fb8 (diff) |
Fix: Adapt main() to core interface
We changed the interface of the core crate to not return
`miette::Result<_>` anymore. This patch adapts the main()
implementation.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'tedge')
-rw-r--r-- | tedge/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tedge/src/main.rs b/tedge/src/main.rs index 08424769..5fe4994c 100644 --- a/tedge/src/main.rs +++ b/tedge/src/main.rs @@ -127,7 +127,7 @@ async fn run( let res = tokio::select! { res = &mut run_fut => { - res + res.into_diagnostic() }, _int = tokio::signal::ctrl_c() => { @@ -135,7 +135,7 @@ async fn run( info!("Shutting down..."); cancel_sender.cancel_app(); tokio::select! { - res = &mut run_fut => res, + res = &mut run_fut => res.into_diagnostic(), _ = tokio::signal::ctrl_c() => kill_app(run_fut), } } else { |