Skip to content

Commit e99d392

Browse files
committed
Better Infallible handling
1 parent 7015a51 commit e99d392

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/devolutions-pedm/src/api

crates/devolutions-pedm/src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pub async fn serve(pipe_name: &'static str, config_path: Option<Utf8PathBuf>) ->
194194

195195
server = create_pipe(pipe_name)?;
196196

197-
let tower_service = make_service.call(&client).await.unwrap(); // return type is Infallible
197+
let Ok(tower_service) = make_service.call(&client).await;
198198
tokio::spawn(async move {
199199
let socket = TokioIo::new(client);
200200

0 commit comments

Comments
 (0)