Skip to content

Commit c7c974e

Browse files
committed
Implement Default for Complex
Fixes #198
1 parent f0bc559 commit c7c974e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

complex/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use traits::{Zero, One, Num, Float};
2929
// probably doesn't map to C's _Complex correctly.
3030

3131
/// A complex number in Cartesian form.
32-
#[derive(PartialEq, Copy, Clone, Hash, Debug)]
32+
#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)]
3333
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
3434
pub struct Complex<T> {
3535
/// Real portion of the complex number

0 commit comments

Comments
 (0)