From 339c0b9fda54b30a956f5878aa3ab9bbd8789ce6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 30 Oct 2023 16:52:10 -0500 Subject: [PATCH] fix: Deprecate signed Uint impls Inspired by #355 --- src/ascii/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ascii/mod.rs b/src/ascii/mod.rs index eddf0f0a..210c2e2e 100644 --- a/src/ascii/mod.rs +++ b/src/ascii/mod.rs @@ -965,6 +965,7 @@ impl Uint for u128 { } } +/// Deprecated since v0.15.17 impl Uint for i8 { fn checked_mul(self, by: u8, _: sealed::SealedMarker) -> Option { self.checked_mul(by as Self) @@ -974,6 +975,7 @@ impl Uint for i8 { } } +/// Deprecated since v0.15.17 impl Uint for i16 { fn checked_mul(self, by: u8, _: sealed::SealedMarker) -> Option { self.checked_mul(by as Self) @@ -983,6 +985,7 @@ impl Uint for i16 { } } +/// Deprecated since v0.15.17 impl Uint for i32 { fn checked_mul(self, by: u8, _: sealed::SealedMarker) -> Option { self.checked_mul(by as Self) @@ -992,6 +995,7 @@ impl Uint for i32 { } } +/// Deprecated since v0.15.17 impl Uint for i64 { fn checked_mul(self, by: u8, _: sealed::SealedMarker) -> Option { self.checked_mul(by as Self) @@ -1001,6 +1005,7 @@ impl Uint for i64 { } } +/// Deprecated since v0.15.17 impl Uint for i128 { fn checked_mul(self, by: u8, _: sealed::SealedMarker) -> Option { self.checked_mul(by as Self)