Merge rust-bitcoin/rust-bitcoin#1122: Add docs re Rust 1.51.1
7f498ee2a2
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](https://github.com/rust-bitcoin/rust-bitcoin/issues/1060).) ACKs for top commit: Kixunil: ACK7f498ee2a2
apoelstra: ACK7f498ee2a2
Tree-SHA512: 9b4bdca09d3f7ac1c0584f4eb5207983a064cfe81ed26952d00396b2e0019ef40eee192b7f09d36c68b8c4e1f8de9cac2d1f3ee0946626bae089b46fe38704ab
This commit is contained in:
commit
7953764d78
|
@ -336,7 +336,7 @@ fn dec_width(mut num: u64) -> usize {
|
|||
width
|
||||
}
|
||||
|
||||
// NIH due to MSRV, impl copied from `core`
|
||||
// NIH due to MSRV, impl copied from `core::i8::unsigned_abs` (introduced in Rust 1.51.1).
|
||||
fn unsigned_abs(x: i8) -> u8 {
|
||||
x.wrapping_abs() as u8
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue