Skip to content

Commit

Permalink
Fix clippy 1.83 lints (elide lifetimes) (#90)
Browse files Browse the repository at this point in the history
And move one impl to parent scope.
  • Loading branch information
strohel authored Dec 9, 2024
1 parent 8b39d4c commit 61d0ed6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ pub struct SpawnBuilderWithAddress<'a, A: Actor, F: FnOnce() -> A> {
addr: Addr<A>,
}

impl<'a, A: 'static + Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A>
SpawnBuilderWithAddress<'a, A, F>
impl<A: 'static + Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A>
SpawnBuilderWithAddress<'_, A, F>
{
/// Run this Actor on the current calling thread. This is a
/// blocking call. This function will return when the Actor
Expand All @@ -406,10 +406,9 @@ impl<'a, A: 'static + Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce
}

impl<
'a,
A: 'static + Actor<Context = Context<<A as Actor>::Message>>,
F: FnOnce() -> A + Send + 'static,
> SpawnBuilderWithAddress<'a, A, F>
> SpawnBuilderWithAddress<'_, A, F>
{
/// Spawn this Actor into a new thread managed by the [`System`].
pub fn spawn(self) -> Result<Addr<A>, ActorError> {
Expand Down Expand Up @@ -1385,10 +1384,10 @@ mod tests {
);
}

impl Event for () {}

#[test]
fn last_cached_event() {
impl Event for () {}

struct Subscriber;
impl Actor for Subscriber {
type Context = Context<Self::Message>;
Expand Down

0 comments on commit 61d0ed6

Please sign in to comment.