Skip to content

Commit

Permalink
fix: use with_context
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Sep 19, 2024
1 parent e64152e commit 832b6af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ fn main() -> Result<()> {
args.username,
args.password,
)
.context(format!(
"Failed to start web server at: {:?}",
server_address
))?;
.with_context(|| format!("Failed to start web server at: {:?}", server_address))?;
Ok(())
}

0 comments on commit 832b6af

Please sign in to comment.