Skip to content

Commit

Permalink
refactor: use expect(..) instead of unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
binarybaron committed Nov 29, 2024
1 parent d94d09b commit 76125d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swap/src/asb/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ pub mod transport {
);

let onion_service_config = OnionServiceConfigBuilder::default()
.nickname(ASB_ONION_SERVICE_NICKNAME.parse().unwrap())
.nickname(
ASB_ONION_SERVICE_NICKNAME
.parse()
.expect("Static nickname to be valid"),
)
.build()
.expect("We specified a valid nickname");

Expand Down

0 comments on commit 76125d4

Please sign in to comment.