Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Aug 27, 2024
1 parent 994b199 commit 8994d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/swaps/magic_routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ pub fn parse_bip21(uri: &str) -> Result<(String, String, bitcoin::Amount, Option
let pair: Vec<&str> = param.split('=').collect();
match pair[0] {
"amount" => {
amount = match bitcoin::Amount::from_str_in(pair[1], bitcoin::Denomination::Bitcoin) {
amount = match bitcoin::Amount::from_str_in(pair[1], bitcoin::Denomination::Bitcoin)
{
Ok(r) => r,
Err(e) => {
return Err(Error::Generic(
Expand Down

0 comments on commit 8994d57

Please sign in to comment.