Skip to content

Commit

Permalink
chore: temp allow #[allow(non_local_definitions)]
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Mar 1, 2024
1 parent 8c31d13 commit 7f0504e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions awc/src/client/connector.rs
Expand Up @@ -401,6 +401,7 @@ where
use actix_tls::connect::Connection;
use actix_utils::future::{ready, Ready};

#[allow(non_local_definitions)]
impl IntoConnectionIo for TcpConnection<Uri, Box<dyn ConnectionIo>> {
fn into_connection_io(self) -> (Box<dyn ConnectionIo>, Protocol) {
let io = self.into_parts().0;
Expand Down Expand Up @@ -451,6 +452,7 @@ where

use actix_tls::connect::openssl::{reexports::AsyncSslStream, TlsConnector};

#[allow(non_local_definitions)]
impl<IO: ConnectionIo> IntoConnectionIo for TcpConnection<Uri, AsyncSslStream<IO>> {
fn into_connection_io(self) -> (Box<dyn ConnectionIo>, Protocol) {
let sock = self.into_parts().0;
Expand Down Expand Up @@ -488,6 +490,7 @@ where

use actix_tls::connect::rustls_0_20::{reexports::AsyncTlsStream, TlsConnector};

#[allow(non_local_definitions)]
impl<Io: ConnectionIo> IntoConnectionIo for TcpConnection<Uri, AsyncTlsStream<Io>> {
fn into_connection_io(self) -> (Box<dyn ConnectionIo>, Protocol) {
let sock = self.into_parts().0;
Expand Down Expand Up @@ -521,6 +524,7 @@ where

use actix_tls::connect::rustls_0_21::{reexports::AsyncTlsStream, TlsConnector};

#[allow(non_local_definitions)]
impl<Io: ConnectionIo> IntoConnectionIo for TcpConnection<Uri, AsyncTlsStream<Io>> {
fn into_connection_io(self) -> (Box<dyn ConnectionIo>, Protocol) {
let sock = self.into_parts().0;
Expand Down Expand Up @@ -557,6 +561,7 @@ where

use actix_tls::connect::rustls_0_22::{reexports::AsyncTlsStream, TlsConnector};

#[allow(non_local_definitions)]
impl<Io: ConnectionIo> IntoConnectionIo for TcpConnection<Uri, AsyncTlsStream<Io>> {
fn into_connection_io(self) -> (Box<dyn ConnectionIo>, Protocol) {
let sock = self.into_parts().0;
Expand Down
1 change: 1 addition & 0 deletions awc/src/lib.rs
Expand Up @@ -102,6 +102,7 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(unknown_lints)] // temp: #[allow(non_local_definitions)]
#![allow(
clippy::type_complexity,
clippy::borrow_interior_mutable_const,
Expand Down

0 comments on commit 7f0504e

Please sign in to comment.