Skip to content

Commit 3104be8

Browse files
committed
Use trait alias also in impl2
1 parent 00f2f83 commit 3104be8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/impl2/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ pub use self::eigh::*;
1515

1616
use super::error::*;
1717

18-
pub trait LapackScalar: OperatorNorm_ + QR_ + SVD_ + Solve_ + Cholesky_ + Eigh_ {}
19-
impl<A> LapackScalar for A where A: OperatorNorm_ + QR_ + SVD_ + Solve_ + Cholesky_ + Eigh_ {}
18+
trait_alias!(LapackScalar: OperatorNorm_,
19+
QR_,
20+
SVD_,
21+
Solve_,
22+
Cholesky_,
23+
Eigh_);
2024

2125
pub fn into_result<T>(info: i32, val: T) -> Result<T> {
2226
if info == 0 {

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ extern crate enum_error_derive;
4343
#[macro_use]
4444
extern crate derive_new;
4545

46+
#[macro_use]
4647
pub mod types;
4748
pub mod error;
4849
pub mod layout;

0 commit comments

Comments
 (0)