Skip to content

Commit

Permalink
Merge pull request #61 from Finomnis/fix_missing_generic
Browse files Browse the repository at this point in the history
Fix missing generic in Toplevel::nested
  • Loading branch information
Finomnis committed Jun 16, 2023
2 parents d7a6183 + 081efdc commit 3627fdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tokio-graceful-shutdown"
authors = ["Finomnis <finomnis@gmail.com>"]
version = "0.12.1"
version = "0.13.0"
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions src/subsystem/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/toplevel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<ErrType: ErrTypeTraits> Toplevel<ErrType> {
/// * `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<ErrType>, 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();
Expand Down

0 comments on commit 3627fdc

Please sign in to comment.