From 5e6b192dd5af210e779875cc1fc4d312cfcd0b33 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 8 Oct 2023 15:15:13 +0900 Subject: [PATCH] Migrate to Rust 2021 --- Cargo.toml | 3 +-- src/notify.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b7e769c..862a09e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ name = "event-listener" # - Create "v3.x.y" git tag version = "3.0.0" authors = ["Stjepan Glavina "] -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 - diff --git a/src/notify.rs b/src/notify.rs index 258bf80..8082bc1 100644 --- a/src/notify.rs +++ b/src/notify.rs @@ -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")) } }