Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kaymanb committed Feb 27, 2024
1 parent 5717133 commit 81e3638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion todc-net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod register;
// a more standard way to integrate and this module can be deleted.
// See: https://github.com/hyperium/hyper/issues/3110
mod hyper_util_tokio_io;
use hyper_util_tokio_io::TokioIo;
pub use hyper_util_tokio_io::TokioIo;

type GenericError = Box<dyn std::error::Error + Send + Sync>;
type ResponseResult = Result<Response<Incoming>, GenericError>;
Expand Down
2 changes: 1 addition & 1 deletion todc-net/tests/register/abd_95/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ use hyper::body::Incoming;
use hyper::http::StatusCode;
use hyper::server::conn::http1;
use hyper::{Request, Response, Uri};
use hyper_util::rt::TokioIo;
use rand::rngs::StdRng;
use rand::{thread_rng, Rng, SeedableRng};
use serde_json::Value as JSON;
use turmoil::net::{TcpListener, TcpStream};
use turmoil::{Builder, Sim};

use todc_net::register::abd_95::AtomicRegister;
use todc_net::TokioIo;

pub const SERVER_PREFIX: &str = "server";
pub const PORT: u32 = 9999;
Expand Down

0 comments on commit 81e3638

Please sign in to comment.