Skip to content

Commit 3f43c7d

Browse files
committed
Prepare v0.3.0
1 parent 00a820b commit 3f43c7d

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.3.0 - 2023-08-09
2+
* Make `::all()` function return an array instead of vector.
3+
14
## v0.2.0 - 2023-08-06
25
* Add `Kind` trait.
36

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The `Kinded` trait allows to build abstract functions that can be used with diff
7373
The kind type gets implementation of `::all()` associated function, which returns a vector with all kind variants:
7474

7575
```rs
76-
assert_eq!(DrinkKind::all(), vec![DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
76+
assert_eq!(DrinkKind::all(), [DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
7777
```
7878

7979

kinded/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kinded"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
authors = ["Serhii Potapov <blake131313@gmail.com>"]
66

@@ -16,4 +16,4 @@ categories = ["data-structures", "rust-patterns"]
1616
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1717

1818
[dependencies]
19-
kinded_macros = { version = "0.2.0", path = "../kinded_macros" }
19+
kinded_macros = { version = "0.3.0", path = "../kinded_macros" }

kinded/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
//! Tea { variety: String, caffeine: bool }
7676
//! }
7777
//!
78-
//! assert_eq!(DrinkKind::all(), vec![DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
78+
//! assert_eq!(DrinkKind::all(), [DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
7979
//! ```
8080
//!
8181
//! ## Attributes

kinded_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kinded_macros"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
authors = ["Serhii Potapov <blake131313@gmail.com>"]
66

0 commit comments

Comments
 (0)