Skip to content

Commit

Permalink
fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
linfeng.yuan committed Sep 12, 2024
1 parent badd492 commit e0086e5
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 292 deletions.
2 changes: 1 addition & 1 deletion src/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ mod tests {
assert_eq!(Epoch::from(Sat(1)), 0);
assert_eq!(Epoch::from(Epoch(1).starting_sat()), 1);
assert_eq!(Epoch::from(Epoch(1).starting_sat() + 1), 1);
assert_eq!(Epoch::from(Sat(u64::max_value())), 33);
assert_eq!(Epoch::from(Sat(u64::MAX)), 33);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/height.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod tests {
u64::from(SUBSIDY_HALVING_INTERVAL) * 5000000000 + 2500000000
);
assert_eq!(
Height(u32::max_value()).starting_sat(),
Height(u32::MAX).starting_sat(),
*Epoch::STARTING_SATS.last().unwrap()
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ impl Index {
};

self
.get_children_by_sequence_number_paginated(sequence_number, usize::max_value(), 0)
.get_children_by_sequence_number_paginated(sequence_number, usize::MAX, 0)
.map(|(children, _more)| children)
}

Expand Down Expand Up @@ -4538,7 +4538,7 @@ mod tests {
i,
if i == 1 { 0 } else { 1 },
0,
inscription("text/plain;charset=utf-8", &format!("hello {}", i)).to_witness(),
inscription("text/plain;charset=utf-8", format!("hello {}", i)).to_witness(),
)], // for the first inscription use coinbase, otherwise use the previous tx
..Default::default()
});
Expand Down
Loading

0 comments on commit e0086e5

Please sign in to comment.