Skip to content

Commit

Permalink
Merge pull request #358 from epage/uint
Browse files Browse the repository at this point in the history
fix: Deprecate signed Uint impls
  • Loading branch information
epage authored Oct 30, 2023
2 parents 2e48b8e + 339c0b9 commit 8da4e79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ascii/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
self.checked_mul(by as Self)
Expand All @@ -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> {
self.checked_mul(by as Self)
Expand All @@ -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> {
self.checked_mul(by as Self)
Expand All @@ -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> {
self.checked_mul(by as Self)
Expand All @@ -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> {
self.checked_mul(by as Self)
Expand Down

0 comments on commit 8da4e79

Please sign in to comment.