Skip to content

Commit a2aa8c8

Browse files
committed
Formatting and update changelog with 0.2.5
1 parent f6dac8c commit a2aa8c8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.5](https://github.com/MidasLamb/non-empty-string/compare/v0.2.4...v0.2.5) - 2024-10-15
11+
12+
### Added
13+
14+
- `new_unchecked` (Thanks @Rudxain in #17 )
15+
1016
## [0.2.4](https://github.com/MidasLamb/non-empty-string/compare/v0.2.3...v0.2.4) - 2023-10-03
1117

1218
### Added
19+
1320
- impl Hash trait
1421
- impl Into trait
1522
- FromStr implementation
1623
- add Deref impl
1724

1825
### Other
26+
1927
- Add release plz
2028
- Remove excessive error file
2129
- Add more traits that `String` also has

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ mod trait_impls;
2525
#[repr(transparent)]
2626
pub struct NonEmptyString(String);
2727

28-
#[allow(clippy::len_without_is_empty, reason = "is_empty would always returns false so it seems a bit silly to have it.")]
28+
#[allow(
29+
clippy::len_without_is_empty,
30+
reason = "is_empty would always returns false so it seems a bit silly to have it."
31+
)]
2932
impl NonEmptyString {
3033
/// Attempts to create a new `NonEmptyString`.
3134
/// If the given `string` is empty, `Err` is returned, containing the original `String`, `Ok` otherwise.

0 commit comments

Comments
 (0)