Add docs re Rust 1.51.1

This commit is contained in:
Tobin C. Harding 2022-07-22 13:52:09 +10:00
parent 2256d4634c
commit 7f498ee2a2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}