mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-07 12:49:10 -07:00
global: utxos part 6
This commit is contained in:
@@ -186,3 +186,9 @@ impl CheckedSub for Dollars {
|
||||
.map(Dollars::from)
|
||||
}
|
||||
}
|
||||
|
||||
impl CheckedSub<usize> for Dollars {
|
||||
fn checked_sub(self, rhs: usize) -> Option<Self> {
|
||||
Some(Self(self.0 - rhs as f64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user