Skip to content

Commit

Permalink
Migrate to Rust 2021 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 13, 2023
1 parent 10bae60 commit ccd2dfe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "event-listener"
# - Create "v3.x.y" git tag
version = "3.0.0"
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
edition = "2018"
edition = "2021"
rust-version = "1.59"
description = "Notify async tasks or threads"
license = "Apache-2.0 OR MIT"
Expand Down Expand Up @@ -51,4 +51,3 @@ harness = false

[lib]
bench = false

1 change: 0 additions & 1 deletion src/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ macro_rules! impl_for_numeric_types {
panic!("negative notification count");
}

use core::convert::TryInto;
Notify::new(self.try_into().expect("overflow"))
}
}
Expand Down

0 comments on commit ccd2dfe

Please sign in to comment.