Skip to content

Commit d5da851

Browse files
committed
further fighting warnings
1 parent d4e03de commit d5da851

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ runtime-tokio-rustls = [
103103
# for conditional compilation
104104
_rt-async-std = []
105105
_rt-tokio = []
106+
_rt-actix = []
106107

107108
# database
108109
any = ["sqlx-core/any"]
@@ -150,6 +151,10 @@ tempdir = "0.3.7"
150151
# Needed to test SQLCipher
151152
libsqlite3-sys = { version = "0", features = ["bundled-sqlcipher-vendored-openssl"] }
152153

154+
155+
[lints.rust]
156+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(sqlite_ipaddr)'] }
157+
153158
#
154159
# Any
155160
#

sqlx-core/src/net/tls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ where
149149
*self = MaybeTlsStream::Raw(raw);
150150
return Ok(());
151151
}
152-
152+
153153
#[cfg(feature = "_tls-native-tls")]
154154
{
155155
let _ = stream; // Use the variable to avoid warning

tests/any/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use sqlx_oldapi::any::{AnyConnectOptions, AnyPoolOptions};
2-
use sqlx_oldapi::{Executor, Row};
2+
use sqlx_oldapi::Executor;
33
use std::sync::atomic::AtomicI32;
44
use std::sync::{
55
atomic::{AtomicUsize, Ordering},

0 commit comments

Comments
 (0)