core/magic_methods: Fix clippy warnings

This commit is contained in:
David Mak 2024-04-24 17:41:41 +08:00
parent c4dc36ae99
commit 062e318dd5

View File

@ -291,7 +291,7 @@ pub fn impl_mod(
impl_binop(unifier, store, ty, other_ty, ret_ty, &[Operator::Mod]); impl_binop(unifier, store, ty, other_ty, ret_ty, &[Operator::Mod]);
} }
/// [Operator::MatMult] /// [`Operator::MatMult`]
pub fn impl_matmul( pub fn impl_matmul(
unifier: &mut Unifier, unifier: &mut Unifier,
store: &PrimitiveStore, store: &PrimitiveStore,
@ -299,7 +299,7 @@ pub fn impl_matmul(
other_ty: &[Type], other_ty: &[Type],
ret_ty: Option<Type>, ret_ty: Option<Type>,
) { ) {
impl_binop(unifier, store, ty, other_ty, ret_ty, &[Operator::MatMult]) impl_binop(unifier, store, ty, other_ty, ret_ty, &[Operator::MatMult]);
} }
/// `UAdd`, `USub` /// `UAdd`, `USub`