Skip to content

Commit 99b78f0

Browse files
committed
Replace remaining krate.span with DUMMY_SP
1 parent 0d577c3 commit 99b78f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/multiple_crate_versions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl EarlyLintPass for Pass {
5353
let metadata = if let Ok(metadata) = cargo_metadata::metadata_deps(None, true) {
5454
metadata
5555
} else {
56-
span_lint(cx, MULTIPLE_CRATE_VERSIONS, krate.span, "could not read cargo metadata");
56+
span_lint(cx, MULTIPLE_CRATE_VERSIONS, DUMMY_SP, "could not read cargo metadata");
5757

5858
return;
5959
};

clippy_lints/src/wildcard_dependencies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl EarlyLintPass for Pass {
4848
let metadata = if let Ok(metadata) = cargo_metadata::metadata(None) {
4949
metadata
5050
} else {
51-
span_lint(cx, WILDCARD_DEPENDENCIES, krate.span, "could not read cargo metadata");
51+
span_lint(cx, WILDCARD_DEPENDENCIES, DUMMY_SP, "could not read cargo metadata");
5252
return;
5353
};
5454

0 commit comments

Comments
 (0)