fixed: fixup operator impls - this is implicitly Self
This commit is contained in:
parent
009aa0c296
commit
7a5406e769
@ -50,7 +50,7 @@ impl<const CHUNKS:usize,Frac> std::ops::Neg for Fixed<CHUNKS,Frac>{
|
|||||||
|
|
||||||
macro_rules! impl_operator {
|
macro_rules! impl_operator {
|
||||||
( $struct: ident, $trait: ident, $method: ident, $output: ty ) => {
|
( $struct: ident, $trait: ident, $method: ident, $output: ty ) => {
|
||||||
impl<const CHUNKS:usize,Frac> core::ops::$trait<$struct<CHUNKS,Frac>> for $struct<CHUNKS,Frac>{
|
impl<const CHUNKS:usize,Frac> core::ops::$trait for $struct<CHUNKS,Frac>{
|
||||||
type Output = $output;
|
type Output = $output;
|
||||||
|
|
||||||
fn $method(self, other: Self) -> Self::Output {
|
fn $method(self, other: Self) -> Self::Output {
|
||||||
@ -64,7 +64,7 @@ macro_rules! impl_operator {
|
|||||||
}
|
}
|
||||||
macro_rules! impl_assign_operator {
|
macro_rules! impl_assign_operator {
|
||||||
( $struct: ident, $trait: ident, $method: ident ) => {
|
( $struct: ident, $trait: ident, $method: ident ) => {
|
||||||
impl<const CHUNKS:usize,Frac> core::ops::$trait<$struct<CHUNKS,Frac>> for $struct<CHUNKS,Frac>{
|
impl<const CHUNKS:usize,Frac> core::ops::$trait for $struct<CHUNKS,Frac>{
|
||||||
fn $method(&mut self, other: Self) {
|
fn $method(&mut self, other: Self) {
|
||||||
self.bits.$method(other.bits);
|
self.bits.$method(other.bits);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user