Skip to content

Commit a7ac5e4

Browse files
authored
Merge pull request #199 from adamcrume/master, r=hauleth
Implement Default for Complex
2 parents 1e66395 + c7c974e commit a7ac5e4

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)