Skip to content

Commit d4e03de

Browse files
committed
deny warnings
1 parent 2ba889c commit d4e03de

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/sqlx.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
--manifest-path sqlx-core/Cargo.toml
3030
--no-default-features
3131
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
32+
env:
33+
RUSTFLAGS: -D warnings
3234

3335
- run:
3436
cargo check

sqlx-core/src/net/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mod tls;
33

44
#[allow(unused_imports)]
55
pub use socket::Socket;
6+
#[allow(unused_imports)]
67
pub use tls::CertificateInput;
78
#[allow(unused_imports)]
89
pub use tls::MaybeTlsStream;

sqlx-macros/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,10 @@ url = { version = "2.2.2", default-features = false }
8787
# This is basically default features plus "full" but if they add more defaults later then we don't need to enable those.
8888
version = "1.0.109"
8989
default-features = false
90-
features = ["full", "parsing", "printing", "derive", "clone-impls", "proc-macro"]
90+
features = ["full", "parsing", "printing", "derive", "clone-impls", "proc-macro"]
91+
92+
[lints.rust]
93+
unexpected_cfgs = { level = "warn", check-cfg = [
94+
'cfg(procmacro2_semver_exempt)',
95+
'cfg(sqlx_macros_unstable)',
96+
] }

0 commit comments

Comments
 (0)