Skip to content

Commit 531c106

Browse files
authored
v4.0.0
Signed-off-by: John Nunley <[email protected]>
1 parent 21b34bf commit 531c106

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Version 4.0.0
2+
3+
- **Breaking:** Fix a footgun in the `EventListener` type. `EventListener::new()`
4+
now no longer takes an `&Event` as an argument, and `EventListener::listen()`
5+
takes the `&Event` as an argument. Hopefully this should prevent `.await`ing
6+
on a listener without making sure it's listening first. (#94)
7+
18
# Version 3.1.0
29

310
- Implement `UnwindSafe` and `RefUnwindSafe` for `EventListener`. This was unintentionally removed in version 3 (#96).

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "event-listener"
33
# When publishing a new version:
44
# - Update CHANGELOG.md
5-
# - Create "v3.x.y" git tag
6-
version = "3.1.0"
5+
# - Create "v4.x.y" git tag
6+
version = "4.0.0"
77
authors = ["Stjepan Glavina <[email protected]>"]
88
edition = "2021"
99
rust-version = "1.59"

0 commit comments

Comments
 (0)