You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
warning: impl trait in impl method signature does not match trait method signature
--> lightway-client/src/keepalive.rs:360:41
|
29 | fn sleep_for_interval(&self) -> impl std::future::Future<Output = ()> + std::marker::Send;
| --------------------------------------------------------- return type from trait method defined here
...
360 | fn sleep_for_interval(&self) -> futures::future::BoxFuture<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
= note: we are soliciting feedback, see issue #121718 <rust-lang/rust#121718> for more information
= note: `#[warn(refining_impl_trait_internal)]` on by default
help: replace the return type so that it matches the trait
|
360 | fn sleep_for_interval(&self) -> impl futures::Future<Output = ()> + std::marker::Send {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
0 commit comments