rust-bitcoin-unsafe-fast/units/src
merge-script c6c690a8f0
Merge rust-bitcoin/rust-bitcoin#4603: units: Add `must_use` to checked arithmetic functions
afc0ce6175 units: Add must_use to checked arithmetic functions (Tobin C. Harding)

Pull request description:

  The checked arithmetic functions all consume self so we use `must_use` to help users not miss this point.

  Most are done, add the missing ones.

ACKs for top commit:
  apoelstra:
    ACK afc0ce617554303d7fd25e052b039af44b6efc1c; successfully ran local tests

Tree-SHA512: 7105affff43827ed47a1c0b6e41a996aa538c7d53b891faf03e79a83164706d7e86db5fb184ac740fdf57bb43f8401a496cc64ea4da0da71eaa8c8cca16444c7
2025-06-09 12:36:54 +00:00
..
amount Change the internal representation of FeeRate 2025-05-31 07:52:31 +01:00
fee_rate Improve rustdocs on FeeRate 2025-05-31 07:52:34 +01:00
locktime 2025-06-08 automated rustfmt nightly 2025-06-08 01:44:53 +00:00
block.rs units: Add must_use to checked arithmetic functions 2025-06-09 00:09:46 +10:00
fee.rs units: Add must_use to checked arithmetic functions 2025-06-09 00:09:46 +10:00
internal_macros.rs Create impl_mul_assign and impl_div_assign macros 2025-04-22 22:50:09 -05:00
lib.rs Implement CheckedSum for Weight iterator 2025-05-26 19:01:56 -05:00
parse.rs Use parameters instead of arguments in rustdocs 2025-04-22 10:43:13 +01:00
result.rs Saturate to_fee to Amount::MAX 2025-05-31 07:52:00 +01:00
time.rs units: Manually implement serde traits 2025-05-14 14:31:39 +10:00
weight.rs Implement CheckedSum for Weight iterator 2025-05-26 19:01:56 -05:00