Skip to content

Commit

Permalink
Replace macro_use of defmac with normal use
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner314 committed Oct 26, 2018
1 parent 756258d commit 44c7fbe
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion blas-tests/tests/oper.rs
@@ -1,4 +1,4 @@
#[macro_use] extern crate defmac;
extern crate defmac;
extern crate ndarray;
extern crate num_traits;

Expand All @@ -9,6 +9,7 @@ use ndarray::linalg::general_mat_vec_mul;
use ndarray::{Ix, Ixs, SliceInfo, SliceOrIndex};

use std::fmt;
use defmac::defmac;
use num_traits::Float;

fn assert_approx_eq<F: fmt::Debug + Float>(f: F, g: F, tol: F) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion tests/array-construct.rs
@@ -1,7 +1,7 @@
#[macro_use]
extern crate defmac;
extern crate ndarray;

use defmac::defmac;
use ndarray::prelude::*;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/array.rs
@@ -1,7 +1,6 @@
#![allow(non_snake_case)]

extern crate ndarray;
#[macro_use]
extern crate defmac;
extern crate itertools;

Expand All @@ -12,6 +11,7 @@ use ndarray::{
arr3,
};
use ndarray::indices;
use defmac::defmac;
use itertools::{enumerate, zip};

#[test]
Expand Down
3 changes: 2 additions & 1 deletion tests/dimension.rs
@@ -1,7 +1,8 @@
extern crate ndarray;
#[macro_use]
extern crate defmac;

use defmac::defmac;

use ndarray::{
RcArray,
Array,
Expand Down
3 changes: 2 additions & 1 deletion tests/oper.rs
@@ -1,4 +1,4 @@
#[macro_use] extern crate defmac;
extern crate defmac;
extern crate ndarray;
extern crate num_traits;

Expand All @@ -11,6 +11,7 @@ use ndarray::{Ix, Ixs, SliceInfo, SliceOrIndex};

use std::fmt;
use std::ops::Neg;
use defmac::defmac;
use num_traits::Float;

fn test_oper(op: &str, a: &[f32], b: &[f32], c: &[f32])
Expand Down

0 comments on commit 44c7fbe

Please sign in to comment.