Skip to content

Commit e90bb7e

Browse files
committed
lint
1 parent 224d9df commit e90bb7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modint.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,8 @@ impl_bin_ops! {
982982
for<I: Id > <&'_ DynamicModInt<I>> ~ <DynamicModInt<I> > -> DynamicModInt<I> { { |&x| x } ~ { |x| x } }
983983
for<I: Id > <&'_ DynamicModInt<I>> ~ <&'_ DynamicModInt<I>> -> DynamicModInt<I> { { |&x| x } ~ { |&x| x } }
984984

985-
for<M: Modulus, T: RemEuclidU32> <StaticModInt<M> > ~ <T> -> StaticModInt<M> { { |x| x } ~ { |x| StaticModInt::<M>::new(x) } }
986-
for<I: Id , T: RemEuclidU32> <DynamicModInt<I> > ~ <T> -> DynamicModInt<I> { { |x| x } ~ { |x| DynamicModInt::<I>::new(x) } }
985+
for<M: Modulus, T: RemEuclidU32> <StaticModInt<M> > ~ <T> -> StaticModInt<M> { { |x| x } ~ { StaticModInt::<M>::new } }
986+
for<I: Id , T: RemEuclidU32> <DynamicModInt<I> > ~ <T> -> DynamicModInt<I> { { |x| x } ~ { DynamicModInt::<I>::new } }
987987
}
988988

989989
impl_assign_ops! {
@@ -992,8 +992,8 @@ impl_assign_ops! {
992992
for<I: Id > <DynamicModInt<I>> ~= <DynamicModInt<I> > { _ ~= { |x| x } }
993993
for<I: Id > <DynamicModInt<I>> ~= <&'_ DynamicModInt<I>> { _ ~= { |&x| x } }
994994

995-
for<M: Modulus, T: RemEuclidU32> <StaticModInt<M> > ~= <T> { _ ~= { |x| StaticModInt::<M>::new(x) } }
996-
for<I: Id, T: RemEuclidU32> <DynamicModInt<I>> ~= <T> { _ ~= { |x| DynamicModInt::<I>::new(x) } }
995+
for<M: Modulus, T: RemEuclidU32> <StaticModInt<M> > ~= <T> { _ ~= { StaticModInt::<M>::new } }
996+
for<I: Id, T: RemEuclidU32> <DynamicModInt<I>> ~= <T> { _ ~= { DynamicModInt::<I>::new } }
997997
}
998998

999999
macro_rules! impl_folding {

0 commit comments

Comments
 (0)