Allow type-complexity in hyper.rs example

This isn't the prettiest, but suppressing the warning does make
the example warning free.
This commit is contained in:
Nick Mathewson 2021-11-21 10:53:06 -05:00
parent 0c2048de60
commit a7f5b9aefe
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ fn uri_to_host_port(uri: Uri) -> Result<(String, u16)> {
impl<R: Runtime> Service<Uri> for ArtiHttpConnector<R> {
type Response = ArtiHttpConnection;
type Error = anyhow::Error;
#[allow(clippy::type_complexity)]
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>;
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {