Skip to content

Commit ce0e9f7

Browse files
committed
Cargo: Enable unreachable pub lint
In order to prevent the problem that previous commit fixed, enable this lint for all of our crates. fixup
1 parent e7e4c9b commit ce0e9f7

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

scylla-cql/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ num-bigint-03 = ["dep:num-bigint-03"]
4444
num-bigint-04 = ["dep:num-bigint-04"]
4545
bigdecimal-04 = ["dep:bigdecimal-04"]
4646
full-serialization = ["chrono", "time", "secret", "num-bigint-03", "num-bigint-04", "bigdecimal-04"]
47+
48+
[lints.rust]
49+
unreachable_pub = "warn"

scylla-macros/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ proc-macro = true
1515
darling = "0.20.0"
1616
syn = "2.0"
1717
quote = "1.0"
18-
proc-macro2 = "1.0"
18+
proc-macro2 = "1.0"
19+
20+
[lints.rust]
21+
unreachable_pub = "warn"

scylla-proxy/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ ntest = "0.9.0"
3232
tracing-subscriber = { version = "0.3.14", features = ["env-filter"] }
3333
tokio = { version = "1.12", features = ["signal"] }
3434

35+
[lints.rust]
36+
unreachable_pub = "warn"

scylla/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ time = "0.3"
7070
[[bench]]
7171
name = "benchmark"
7272
harness = false
73+
74+
[lints.rust]
75+
unreachable_pub = "warn"

0 commit comments

Comments
 (0)