Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Jul 26, 2023
1 parent 9a77990 commit e30ccc9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 179 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ tower-async = { version = "0.1" }
tracing = "0.1"

[dev-dependencies]
anyhow = "1.0"
tokio-test = "0.4"
tracing-subscriber = "0.3"
6 changes: 3 additions & 3 deletions src/transport/tcp/server/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::transport::{connection::Connection, graceful};
/// Listens to incoming TCP connections and serves them with a [`tower_async::Service`].
///
/// That [`tower_async::Service`] is created by a [`tower_async::Service`] for each incoming connection.
///
///
/// [`tower_async::Service`]: https://docs.rs/tower-async/*/tower_async/trait.Service.html
#[derive(Debug)]
pub struct TcpListener<S, H> {
Expand Down Expand Up @@ -74,7 +74,7 @@ impl TryFrom<std::net::TcpListener>
impl<H> TcpListener<private::NoState, H> {
/// Sets a state for the [`TcpListener`],
/// which will be passed to the [`tower_async::Service`] for each incoming connection.
///
///
/// [`tower_async::Service`]: https://docs.rs/tower-async/*/tower_async/trait.Service.html
pub fn state<S>(self, state: S) -> TcpListener<S, H>
where
Expand Down Expand Up @@ -199,7 +199,7 @@ mod private {

use crate::transport::tcp::server::error::{Error, ErrorHandler, ErrorKind};

#[derive(Debug)]
#[derive(Debug, Clone, Copy, Default)]
pub(super) struct NoState;

#[derive(Debug, Clone, Copy, Default)]
Expand Down
176 changes: 0 additions & 176 deletions src/transport/tcp/server/listener_backup.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/transport/tcp/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! as the entrypoint of pretty much any Rama server.

pub mod error;
pub mod factory;

mod listener;
pub use listener::*;

0 comments on commit e30ccc9

Please sign in to comment.