Skip to content

Commit 0862bc7

Browse files
committed
Remove faliible ::new() constuctor
1 parent f2fd76e commit 0862bc7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### v0.x.x - 2025-xx-xx
2-
* **[FEATURE]** Ability to instantiate types in `const` context, when declared with `const_fn` flag.
2+
- **[FEATURE]** Ability to instantiate types in `const` context, when declared with `const_fn` flag.
3+
- **[BREAKING]** Fallible `::new()` constructor is removed (was deprecated in 0.4.3).
34

45
### v0.5.1 - 2024-12-20
56

nutype_macros/src/common/gen/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,6 @@ pub trait GenerateNewtype {
316316
// scope imported with `use super::*`.
317317
#fn_sanitize
318318
#fn_validate
319-
320-
// TODO: Remove in 0.5.0
321-
#[deprecated(since="0.4.3", note="\nUse `try_new` instead.")]
322-
pub fn new(raw_value: #input_type) -> ::core::result::Result<Self, #error_type_path> {
323-
Self::try_new(raw_value)
324-
}
325319
}
326320
)
327321
}

0 commit comments

Comments
 (0)