Skip to content

Commit

Permalink
Fix up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tikue committed Mar 17, 2021
1 parent d3f6c01 commit 90bc7f7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
16 changes: 7 additions & 9 deletions tarpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,16 +750,14 @@ where
mod tests {
use super::*;

use {
crate::{
trace,
transport::channel::{self, UnboundedChannel},
},
assert_matches::assert_matches,
futures::future::{pending, Aborted},
futures_test::task::noop_context,
std::time::Duration,
use crate::{
trace,
transport::channel::{self, UnboundedChannel},
};
use assert_matches::assert_matches;
use futures::future::{pending, Aborted};
use futures_test::task::noop_context;
use std::time::Duration;

fn test_channel<Req, Resp>() -> (
Pin<Box<BaseChannel<Req, Resp, UnboundedChannel<ClientMessage<Req>, Response<Resp>>>>>,
Expand Down
12 changes: 5 additions & 7 deletions tarpc/src/server/in_flight_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,12 @@ impl Drop for InFlightRequests {
mod tests {
use super::*;

use {
assert_matches::assert_matches,
futures::{
future::{pending, Abortable},
FutureExt,
},
futures_test::task::noop_context,
use assert_matches::assert_matches;
use futures::{
future::{pending, Abortable},
FutureExt,
};
use futures_test::task::noop_context;

#[tokio::test]
async fn start_request_increases_len() {
Expand Down
10 changes: 7 additions & 3 deletions tarpc/src/server/throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ where
mod tests {
use super::*;

use super::super::in_flight_requests::AlreadyExistsError;
use super::super::testing::{self, FakeChannel, PollExt};
use crate::Request;
use crate::{
server::{
in_flight_requests::AlreadyExistsError,
testing::{self, FakeChannel, PollExt},
},
Request,
};
use pin_utils::pin_mut;
use std::{marker::PhantomData, time::Duration};

Expand Down

0 comments on commit 90bc7f7

Please sign in to comment.