Migrate to Rust 2021 (#85)

This commit is contained in:
Taiki Endo 2023-10-13 10:36:17 +09:00 committed by GitHub
parent 10bae60266
commit ccd2dfe873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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"
@ -51,4 +51,3 @@ harness = false
[lib]
bench = false

View File

@ -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"))
}
}