Skip to content

Commit

Permalink
Merge pull request #199 from greyblake/remove-fallible-new
Browse files Browse the repository at this point in the history
Remove faliible ::new() constuctor
  • Loading branch information
greyblake authored Jan 4, 2025
2 parents f2fd76e + 0862bc7 commit 7432aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### v0.x.x - 2025-xx-xx
* **[FEATURE]** Ability to instantiate types in `const` context, when declared with `const_fn` flag.
- **[FEATURE]** Ability to instantiate types in `const` context, when declared with `const_fn` flag.
- **[BREAKING]** Fallible `::new()` constructor is removed (was deprecated in 0.4.3).

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

Expand Down
6 changes: 0 additions & 6 deletions nutype_macros/src/common/gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,6 @@ pub trait GenerateNewtype {
// scope imported with `use super::*`.
#fn_sanitize
#fn_validate

// TODO: Remove in 0.5.0
#[deprecated(since="0.4.3", note="\nUse `try_new` instead.")]
pub fn new(raw_value: #input_type) -> ::core::result::Result<Self, #error_type_path> {
Self::try_new(raw_value)
}
}
)
}
Expand Down

0 comments on commit 7432aa2

Please sign in to comment.