Skip to content

Commit

Permalink
Merge pull request #2801 from didier-wenzek/fix/unused-imports
Browse files Browse the repository at this point in the history
refactor: fix unused imports (was used only by test-helpers)
  • Loading branch information
didier-wenzek authored Mar 27, 2024
2 parents 6a1e348 + 0ff42d3 commit 7544a4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/core/tedge_actors/src/servers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,10 @@ pub use builders::*;
pub use message_boxes::*;
use std::fmt::Debug;

use crate::Builder;
use crate::DynSender;
use crate::Message;
use crate::MessageSink;
use crate::MessageSource;
use crate::NoConfig;
use crate::Sender;
use crate::SimpleMessageBox;
use crate::SimpleMessageBoxBuilder;
use async_trait::async_trait;

/// Define how a server process a request
Expand Down Expand Up @@ -159,7 +154,7 @@ pub trait Service<Request: Message, Response: Message>:

#[cfg(feature = "test-helpers")]
/// Create a simple message box connected to a server box under construction.
fn new_client_box(&mut self) -> SimpleMessageBox<Response, Request>;
fn new_client_box(&mut self) -> crate::SimpleMessageBox<Response, Request>;
}

impl<T, Request: Message, Response: Message> Service<Request, Response> for T
Expand All @@ -175,7 +170,12 @@ where
}

#[cfg(feature = "test-helpers")]
fn new_client_box(&mut self) -> SimpleMessageBox<Response, Request> {
fn new_client_box(&mut self) -> crate::SimpleMessageBox<Response, Request> {
use crate::Builder;
use crate::MessageSource;
use crate::NoConfig;
use crate::SimpleMessageBoxBuilder;

let name = "client-box";
let capacity = 16;
let mut client_box = SimpleMessageBoxBuilder::new(name, capacity);
Expand Down

0 comments on commit 7544a4c

Please sign in to comment.