Skip to content

Commit bc848d2

Browse files
committed
Release version v0.2.3
1 parent 8663379 commit bc848d2

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

CHANGELOG.md

+27-9
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,56 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## [Unreleased]
9+
810
### Added
911

1012
### Changed
1113

1214
### Removed
1315

16+
## [0.2.3]
17+
18+
### Added
19+
20+
- Add `Display` implementation ([#8](https://github.com/MidasLamb/non-empty-string/pull/8), thanks to [@jonhteper](https://github.com/jonhteper))
21+
- Align errors in `TryFrom` implementations ([#8](https://github.com/MidasLamb/non-empty-string/pull/8), thanks to [@jonhteper](https://github.com/jonhteper))
22+
1423
## [0.2.2]
24+
1525
### Added
16-
* Add & delegate all non-length-reducing methods of `std::string::String` to the inner `String`.
26+
27+
- Add & delegate all non-length-reducing methods of `std::string::String` to the inner `String`.
1728

1829
### Changed
19-
* README has some more examples and explanations. It is also no longer included in the doc (except for doctests).
30+
31+
- README has some more examples and explanations. It is also no longer included in the doc (except for doctests).
2032

2133
## [0.2.1]
34+
2235
### Changed
23-
* The error message when using `serde` now indicates that the empty string could not be deserialized.
24-
* Bumped rust edition to `2021`
36+
37+
- The error message when using `serde` now indicates that the empty string could not be deserialized.
38+
- Bumped rust edition to `2021`
2539

2640
## [0.2.0]
41+
2742
### Added
28-
* `serde` support behind the `serde` feature flag.
29-
* `Eq, PartialEq, Ord, PartialOrd` are now implemented for `NonEmptyString`.
30-
* `get` to retrieve a reference to the inner value.
43+
44+
- `serde` support behind the `serde` feature flag.
45+
- `Eq, PartialEq, Ord, PartialOrd` are now implemented for `NonEmptyString`.
46+
- `get` to retrieve a reference to the inner value.
3147

3248
### Changed
33-
* `new` constructor now returns a `Result` rather than an `Option`, which contains the original string
3449

35-
[Unreleased]: https://github.com/MidasLamb/non-empty-string/v0.2.2...HEAD
50+
- `new` constructor now returns a `Result` rather than an `Option`, which contains the original string
51+
52+
[unreleased]: https://github.com/MidasLamb/non-empty-string/compare/v0.2.3...HEAD
53+
[0.2.3]: https://github.com/MidasLamb/non-empty-string/compare/v0.2.2...v0.2.3
3654
[0.2.2]: https://github.com/MidasLamb/non-empty-string/compare/v0.2.1...v0.2.2
3755
[0.2.1]: https://github.com/MidasLamb/non-empty-string/compare/v0.2.0...v0.2.1
3856
[0.2.0]: https://github.com/MidasLamb/non-empty-string/compare/v0.1.0...v0.2.0

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ mod test_readme {
1010
mod something {}
1111
}
1212

13-
use std::fmt::Display;
1413
use delegate::delegate;
14+
use std::fmt::Display;
1515

1616
#[cfg(feature = "serde")]
1717
mod serde_support;
@@ -135,7 +135,7 @@ impl<'s> TryFrom<&'s str> for NonEmptyString {
135135
if value.is_empty() {
136136
return Err(value);
137137
}
138-
138+
139139
Ok(NonEmptyString(value.to_owned()))
140140
}
141141
}

0 commit comments

Comments
 (0)