From 7f498ee2a21ecdc5934a706369d90762a547c568 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 22 Jul 2022 13:52:09 +1000 Subject: [PATCH] Add docs re Rust 1.51.1 --- src/util/amount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/amount.rs b/src/util/amount.rs index d23b9c23..2cd93687 100644 --- a/src/util/amount.rs +++ b/src/util/amount.rs @@ -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 }