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:
parent
0c2048de60
commit
a7f5b9aefe
|
@ -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>> {
|
||||
|
|
Loading…
Reference in New Issue