1
0
mirror of https://github.com/actix/actix synced 2024-11-27 16:22:56 +01:00

chore: address nightly warnings

This commit is contained in:
Rob Ede 2024-03-02 14:36:20 +00:00
parent cc78839ad4
commit 09e4bc33db
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
6 changed files with 7 additions and 9 deletions

View File

@ -7,7 +7,7 @@
use std::time::{Duration, Instant};
use actix::{prelude::*, Actor, Context, WeakAddr};
use actix::{prelude::*, WeakAddr};
#[derive(Message, Debug)]
#[rtype(result = "()")]

View File

@ -7,7 +7,7 @@
use std::time::{Duration, Instant};
use actix::{prelude::*, Actor, Context, WeakRecipient};
use actix::{prelude::*, WeakRecipient};
#[derive(Message, Debug)]
#[rtype(result = "()")]

View File

@ -896,7 +896,7 @@ fn encode_state(state: &State) -> usize {
#[cfg(test)]
mod tests {
use std::{thread, time};
use std::time;
use super::*;
use crate::{address::queue::PopResult, prelude::*};

View File

@ -141,11 +141,11 @@ impl<A: Actor> Addr<A> {
}
/// Returns the [`Recipient`] for a specific message type.
pub fn recipient<M: 'static>(self) -> Recipient<M>
pub fn recipient<M>(self) -> Recipient<M>
where
A: Handler<M>,
A::Context: ToEnvelope<A, M>,
M: Message + Send,
M: Message + Send + 'static,
M::Result: Send,
{
self.into()
@ -210,11 +210,11 @@ impl<A: Actor> WeakAddr<A> {
}
}
pub fn recipient<M: 'static>(self) -> WeakRecipient<M>
pub fn recipient<M>(self) -> WeakRecipient<M>
where
A: Handler<M>,
A::Context: ToEnvelope<A, M>,
M: Message + Send,
M: Message + Send + 'static,
M::Result: Send,
{
self.into()

View File

@ -1,6 +1,5 @@
use std::{
collections::HashSet,
mem::drop,
sync::{
atomic::{AtomicUsize, Ordering},
Arc,

View File

@ -13,7 +13,6 @@ use std::{
use actix::prelude::*;
use actix_rt::time::{interval_at, sleep, Instant};
use futures_core::stream::Stream;
use futures_util::stream::once;
use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver};