Skip to content

Commit a36dad7

Browse files
committed
Merge rust-bitcoin/rust-bitcoin#1122: Add docs re Rust 1.51.1
7f498ee Add docs re Rust 1.51.1 (Tobin C. Harding) Pull request description: After auditing the code base for 'msrv' the only remaining mention (excl. md files) is on `unsigned_abs`. Add docs to save the next guy looking up what version of Rust introduced `unsigned_abs`. (I also added an item to the [msrv tracking issue](rust-bitcoin/rust-bitcoin#1060).) ACKs for top commit: Kixunil: ACK 7f498ee apoelstra: ACK 7f498ee Tree-SHA512: 9b4bdca09d3f7ac1c0584f4eb5207983a064cfe81ed26952d00396b2e0019ef40eee192b7f09d36c68b8c4e1f8de9cac2d1f3ee0946626bae089b46fe38704ab
2 parents 70289aa + 7bc573e commit a36dad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/amount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ fn dec_width(mut num: u64) -> usize {
336336
width
337337
}
338338

339-
// NIH due to MSRV, impl copied from `core`
339+
// NIH due to MSRV, impl copied from `core::i8::unsigned_abs` (introduced in Rust 1.51.1).
340340
fn unsigned_abs(x: i8) -> u8 {
341341
x.wrapping_abs() as u8
342342
}

0 commit comments

Comments
 (0)