Skip to content

Commit

Permalink
Fix & ignore Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Dec 21, 2024
1 parent a90ddcd commit aeb612e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ clippy:
--allow clippy::new-without-default \
--allow clippy::option-if-let-else \
--allow clippy::redundant-pub-crate \
--allow clippy::used-underscore-items \
--allow clippy::use-self \

doc:
Expand Down
1 change: 1 addition & 0 deletions rt/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ impl Clone for Log {

/// Start timing an event (using [`EventTiming`]) if we're tracing, i.e. if
/// `log` is `Some`.
#[allow(clippy::ref_option)]
pub(crate) fn start<L>(log: &Option<L>) -> Option<EventTiming>
where
L: TraceLog,
Expand Down
5 changes: 1 addition & 4 deletions src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,7 @@ impl<RT> ActorFutureBuilder<RT> {
let (inbox, sender, receiver) = inbox::Manager::new_channel(self.inbox_size.get());
let actor_ref = ActorRef::local(sender);
let ctx = actor::Context::new(receiver, rt.clone());
let actor = match new_actor.new(ctx, argument) {
Ok(actor) => actor,
Err(err) => return Err(err),
};
let actor = new_actor.new(ctx, argument)?;
let future = ActorFuture {
supervisor,
new_actor,
Expand Down

0 comments on commit aeb612e

Please sign in to comment.