Remove reduntant Num trait from an impl.
This commit is contained in:
parent
1e07193480
commit
ff6a40cc88
|
@ -81,9 +81,6 @@ impl<T: Clone + Float> Complex<T> {
|
||||||
pub fn norm(&self) -> T {
|
pub fn norm(&self) -> T {
|
||||||
self.re.clone().hypot(self.im.clone())
|
self.re.clone().hypot(self.im.clone())
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl<T: Clone + Float + Num> Complex<T> {
|
|
||||||
/// Calculate the principal Arg of self.
|
/// Calculate the principal Arg of self.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn arg(&self) -> T {
|
pub fn arg(&self) -> T {
|
||||||
|
|
Loading…
Reference in New Issue