From 2b6d21334f84adb5f06b3c97c46c5c3a9fa4be68 Mon Sep 17 00:00:00 2001 From: Joey Yandle Date: Wed, 9 Oct 2024 11:49:14 -0400 Subject: [PATCH] use where clause for long trait bounds --- src/common.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common.rs b/src/common.rs index 1d4de910..4cd24c95 100644 --- a/src/common.rs +++ b/src/common.rs @@ -48,10 +48,10 @@ pub struct Polynomial { _x: std::marker::PhantomData, } -impl< - Param: Clone + Zero + Random + Add + AddAssign<>::Output>, - Arg: Clone + One + Mul + MulAssign, - > Polynomial +impl Polynomial +where + Param: Clone + Zero + Random + Add + AddAssign<>::Output>, + Arg: Clone + One + Mul + MulAssign, { /// construct new random polynomial of the specified degree pub fn random(n: u32, rng: &mut RNG) -> Self {