Skip to content

Commit

Permalink
Merge pull request serde-rs#199 from adamcrume/master, r=hauleth
Browse files Browse the repository at this point in the history
Implement Default for Complex
  • Loading branch information
cuviper authored Jul 1, 2016
2 parents 1e66395 + c7c974e commit a7ac5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion complex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use traits::{Zero, One, Num, Float};
// probably doesn't map to C's _Complex correctly.

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

0 comments on commit a7ac5e4

Please sign in to comment.