Skip to content

Commit 0eb3e90

Browse files
authored
Merge pull request #119 from WalterSmuts/master
Relax trait bounds on serde impl for Complex
2 parents d46cf08 + 93f1a4e commit 0eb3e90

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ categories = ["algorithms", "data-structures", "science", "no-std"]
88
license = "MIT OR Apache-2.0"
99
name = "num-complex"
1010
repository = "https://github.com/rust-num/num-complex"
11-
version = "0.4.4"
11+
version = "0.4.5"
1212
readme = "README.md"
1313
exclude = ["/ci/*", "/.github/*"]
1414
edition = "2018"

RELEASES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Release 0.4.5 (2024-02-06)
2+
3+
- [Relaxed `T` bounds on `serde::Deserialize` for `Complex<T>`.][119]
4+
5+
**Contributors**: @cuviper, @WalterSmuts
6+
7+
[119]: https://github.com/rust-num/num-complex/pull/119
8+
19
# Release 0.4.4 (2023-08-13)
210

311
- [Fixes NaN value for `powc` of zero][116]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ where
15081508
#[cfg(feature = "serde")]
15091509
impl<'de, T> serde::Deserialize<'de> for Complex<T>
15101510
where
1511-
T: serde::Deserialize<'de> + Num + Clone,
1511+
T: serde::Deserialize<'de>,
15121512
{
15131513
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
15141514
where

0 commit comments

Comments
 (0)