Skip to content

Commit

Permalink
fix: clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Sep 14, 2023
1 parent ec1b30f commit ce80498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ector/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ where
{
/// Creates a new instance of the request manager.
/// The channel must be provided by the user and only used by this manager
pub fn new(addr: A, channel: &'static mut Channel<MUT, R, 1>) -> Self
pub fn new(addr: A, channel: &'static Channel<MUT, R, 1>) -> Self
where
MUT: RawMutex,
{
Expand Down Expand Up @@ -145,7 +145,7 @@ where
async fn request(&mut self, message: M) -> R {
self.handle_missed().await;

let message = Request::new(message, self.reply_from.clone().into());
let message = Request::new(message, self.reply_from.into());
self.addr.notify(message).await;
self.cancelled += 1;
let reply = self.reply_to.receive().await;
Expand Down

0 comments on commit ce80498

Please sign in to comment.