Skip to content

Commit dddb664

Browse files
committed
Remove dead code warnings + remove "internal" from features.default
1 parent 36248af commit dddb664

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rustc-semver = "1.1"
5858
rustc_tools_util = "0.3.0"
5959

6060
[features]
61-
deny-warnings = ["clippy_lints/deny-warnings", "internal"]
61+
deny-warnings = ["clippy_lints/deny-warnings"]
6262
integration = ["tempfile"]
6363
internal = ["clippy_lints/internal", "tempfile"]
6464

clippy_lints/src/utils/metadata_collector.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ pub struct MetadataCollector {
148148
}
149149

150150
impl MetadataCollector {
151+
#[cfg(feature = "internal")]
151152
pub fn new() -> Self {
152153
Self {
153154
lints: BinaryHeap::<LintMetadata>::default(),
@@ -578,6 +579,7 @@ impl ClippyConfiguration {
578579
}
579580
}
580581

582+
#[cfg(feature = "internal")]
581583
fn collect_configs() -> Vec<ClippyConfiguration> {
582584
crate::utils::conf::metadata::get_configuration_metadata()
583585
}

0 commit comments

Comments
 (0)