File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed
Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ name = "num-complex"
1010repository = " https://github.com/rust-num/num-complex"
1111version = " 0.3.0-pre"
1212readme = " README.md"
13- build = " build.rs"
1413exclude = [" /ci/*" , " /.travis.yml" , " /bors.toml" ]
1514publish = false
1615
@@ -37,6 +36,3 @@ default-features = false
3736[features ]
3837default = [" std" ]
3938std = [" num-traits/std" ]
40-
41- [build-dependencies ]
42- autocfg = " 1"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -93,19 +93,11 @@ pub type Complex32 = Complex<f32>;
9393pub type Complex64 = Complex < f64 > ;
9494
9595impl < T > Complex < T > {
96- #[ cfg( has_const_fn) ]
9796 /// Create a new Complex
9897 #[ inline]
9998 pub const fn new ( re : T , im : T ) -> Self {
10099 Complex { re : re, im : im }
101100 }
102-
103- #[ cfg( not( has_const_fn) ) ]
104- /// Create a new Complex
105- #[ inline]
106- pub fn new ( re : T , im : T ) -> Self {
107- Complex { re : re, im : im }
108- }
109101}
110102
111103impl < T : Clone + Num > Complex < T > {
@@ -2647,7 +2639,6 @@ mod test {
26472639 assert ! ( c. is_one( ) ) ;
26482640 }
26492641
2650- #[ cfg( has_const_fn) ]
26512642 #[ test]
26522643 fn test_const ( ) {
26532644 const R : f64 = 12.3 ;
You can’t perform that action at this time.
0 commit comments