Skip to content

Commit

Permalink
Fix map err
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 15, 2024
1 parent 7d2f355 commit 0f00c1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion talpid-wireguard/src/ephemeral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ async fn reconfigure_tunnel(

let new_tunnel = tunnel
.better_set_config(&config)
.map_err(|e| SetupError(Error::TunnelError(e)))?;
.map_err(Error::TunnelError)
.map_err(CloseMsg::SetupError)?;

*lock = Some(new_tunnel);
Ok(config)
Expand Down

0 comments on commit 0f00c1a

Please sign in to comment.