Skip to content

Commit

Permalink
fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
linfeng.yuan committed Sep 12, 2024
1 parent e0086e5 commit 0203bd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 46 deletions.
50 changes: 10 additions & 40 deletions src/runes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2081,10 +2081,7 @@ mod tests {
txid: txid3,
vout: 0,
},
vec![
(id0, u128::MAX / 2 + 1),
(id1, u128::MAX / 2 + 1),
],
vec![(id0, u128::MAX / 2 + 1), (id1, u128::MAX / 2 + 1)],
),
(
OutPoint {
Expand Down Expand Up @@ -3042,22 +3039,10 @@ mod tests {
},
)],
[
(
OutPoint { txid, vout: 0 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 1 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 2 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 3 },
vec![(id, u128::MAX / 4)],
),
(OutPoint { txid, vout: 0 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 1 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 2 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 3 }, vec![(id, u128::MAX / 4)]),
],
);
}
Expand Down Expand Up @@ -3188,22 +3173,10 @@ mod tests {
},
)],
[
(
OutPoint { txid, vout: 0 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 1 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 2 },
vec![(id, u128::MAX / 4 + 1)],
),
(
OutPoint { txid, vout: 3 },
vec![(id, u128::MAX / 4)],
),
(OutPoint { txid, vout: 0 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 1 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 2 }, vec![(id, u128::MAX / 4 + 1)]),
(OutPoint { txid, vout: 3 }, vec![(id, u128::MAX / 4)]),
],
);
}
Expand Down Expand Up @@ -3315,10 +3288,7 @@ mod tests {
},
)],
[
(
OutPoint { txid, vout: 0 },
vec![(id, u128::MAX - 2000)],
),
(OutPoint { txid, vout: 0 }, vec![(id, u128::MAX - 2000)]),
(OutPoint { txid, vout: 1 }, vec![(id, 1000)]),
(OutPoint { txid, vout: 2 }, vec![(id, 1000)]),
],
Expand Down
7 changes: 1 addition & 6 deletions src/runes/runestone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,12 +1368,7 @@ mod tests {
#[test]
fn etching_with_term_greater_than_maximum_is_ignored() {
assert_eq!(
decipher(&[
TAG_FLAGS,
FLAG_ETCH,
TAG_TERM,
u128::from(u64::MAX) + 1,
]),
decipher(&[TAG_FLAGS, FLAG_ETCH, TAG_TERM, u128::from(u64::MAX) + 1,]),
Runestone {
etching: Some(Etching::default()),
..Default::default()
Expand Down

0 comments on commit 0203bd6

Please sign in to comment.