diff --git a/tokio/src/runtime/io/registration_set.rs b/tokio/src/runtime/io/registration_set.rs index eaaedb0d0fe..9b23732d96a 100644 --- a/tokio/src/runtime/io/registration_set.rs +++ b/tokio/src/runtime/io/registration_set.rs @@ -62,6 +62,7 @@ impl RegistrationSet { // Push a ref into the list of all resources. synced.registrations.push_front(ret.clone()); + Ok(ret) }