Skip to content

Commit

Permalink
admin: Remove unused types (#1294)
Browse files Browse the repository at this point in the history
Rust nightly catches a few unused types that are apparently not caught
on the most recent stable releases.
  • Loading branch information
olix0r authored Sep 30, 2021
1 parent afcfc34 commit 93a1f29
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions linkerd/app/admin/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use linkerd_app_core::{
};
use std::{
future::Future,
net::SocketAddr,
pin::Pin,
task::{Context, Poll},
};
Expand All @@ -42,18 +41,6 @@ pub struct Admin<M> {
shutdown_tx: mpsc::UnboundedSender<()>,
}

#[derive(Clone)]
pub struct Accept<S> {
service: S,
server: hyper::server::conn::Http,
}

#[derive(Clone)]
pub struct Serve<S> {
client_addr: SocketAddr,
inner: S,
}

pub type ResponseFuture =
Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'static>>;

Expand Down

0 comments on commit 93a1f29

Please sign in to comment.