Skip to content

Commit

Permalink
Import use core::ops::{Add, Sub}
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Aug 9, 2023
1 parent b659eb8 commit a6d4ece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use core::cmp::{Ord, Ordering, PartialOrd};
use core::fmt::{Binary, Display, Formatter, LowerHex, Octal, UpperHex};
use core::hash::{Hash, Hasher};
use core::ops::{
BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Not, Shl, ShlAssign, Shr,
ShrAssign,
Add, BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Not, Shl, ShlAssign, Shr,
ShrAssign, Sub,
};

macro_rules! define_unsigned {
Expand Down Expand Up @@ -376,7 +376,7 @@ macro_rules! implement_common {
}
}

impl core::ops::Add<$name> for $name {
impl Add<$name> for $name {
type Output = $name;
#[allow(unused_comparisons)]
fn add(self, other: $name) -> $name {
Expand All @@ -389,7 +389,7 @@ macro_rules! implement_common {
}
}

impl core::ops::Sub<$name> for $name {
impl Sub<$name> for $name {
type Output = $name;
#[allow(unused_comparisons)]
fn sub(self, other: $name) -> $name {
Expand Down

0 comments on commit a6d4ece

Please sign in to comment.