From 116366ca9b14ff81b06e1933b176061548807f9e Mon Sep 17 00:00:00 2001 From: Finomnis Date: Fri, 16 Jun 2023 19:28:44 +0200 Subject: [PATCH 1/2] Fix missing generic in Toplevel::nested --- Cargo.toml | 2 +- src/toplevel.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4aab1c2..87f5e83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tokio-graceful-shutdown" authors = ["Finomnis "] -version = "0.12.1" +version = "0.13.0" edition = "2018" license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/src/toplevel.rs b/src/toplevel.rs index 8268e1f..b6a3a16 100644 --- a/src/toplevel.rs +++ b/src/toplevel.rs @@ -97,7 +97,7 @@ impl Toplevel { /// * `parent` - The subsystemhandle that the [Toplevel] object will receive shutdown /// requests from /// * `name` - The name of the nested toplevel object. Can be `""`. - pub fn nested(parent: &SubsystemHandle, name: &str) -> Self { + pub fn nested(parent: &SubsystemHandle, name: &str) -> Self { // Take shutdown tokesn from parent let global_shutdown_token = parent.global_shutdown_token().clone(); let group_shutdown_token = parent.local_shutdown_token().child_token(); From 081efdcc3fc7d3c947a4a434cc0dcc84d7ada291 Mon Sep 17 00:00:00 2001 From: Finomnis Date: Fri, 16 Jun 2023 19:38:18 +0200 Subject: [PATCH 2/2] Silence clippy warning --- src/subsystem/identifier.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/subsystem/identifier.rs b/src/subsystem/identifier.rs index af9d236..0ab5f89 100644 --- a/src/subsystem/identifier.rs +++ b/src/subsystem/identifier.rs @@ -22,6 +22,7 @@ mod tests { #[test] fn equals_with_itself() { let identifier1 = SubsystemIdentifier::create(); + #[allow(clippy::redundant_clone)] let identifier2 = identifier1.clone(); assert_eq!(identifier1, identifier2); }