Skip to content

Commit

Permalink
Merge pull request #119 from WalterSmuts/master
Browse files Browse the repository at this point in the history
Relax trait bounds on serde impl for Complex
  • Loading branch information
cuviper committed Feb 6, 2024
2 parents d46cf08 + 93f1a4e commit 0eb3e90
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -8,7 +8,7 @@ categories = ["algorithms", "data-structures", "science", "no-std"]
license = "MIT OR Apache-2.0"
name = "num-complex"
repository = "https://github.com/rust-num/num-complex"
version = "0.4.4"
version = "0.4.5"
readme = "README.md"
exclude = ["/ci/*", "/.github/*"]
edition = "2018"
Expand Down
8 changes: 8 additions & 0 deletions RELEASES.md
@@ -1,3 +1,11 @@
# Release 0.4.5 (2024-02-06)

- [Relaxed `T` bounds on `serde::Deserialize` for `Complex<T>`.][119]

**Contributors**: @cuviper, @WalterSmuts

[119]: https://github.com/rust-num/num-complex/pull/119

# Release 0.4.4 (2023-08-13)

- [Fixes NaN value for `powc` of zero][116]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -1508,7 +1508,7 @@ where
#[cfg(feature = "serde")]
impl<'de, T> serde::Deserialize<'de> for Complex<T>
where
T: serde::Deserialize<'de> + Num + Clone,
T: serde::Deserialize<'de>,
{
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
Expand Down

0 comments on commit 0eb3e90

Please sign in to comment.