Skip to content

Commit

Permalink
fix: Fix clippy warning expect used
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Sep 2, 2024
1 parent 7e49901 commit 8bbd0df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,11 @@ fn get_output(output_format: OutputFormat) -> Result<(Box<dyn Output>, Sender)>

#[tokio::main]
async fn main() -> Result<()> {
rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.expect("Failed to install rustls crypto provider");
if let Err(err) = rustls::crypto::aws_lc_rs::default_provider().install_default() {
return Err(anyhow::anyhow!(
"Failed to install rustls crypto provider: {err:?}"
));
}

let args = Args::parse();

Expand Down

0 comments on commit 8bbd0df

Please sign in to comment.