mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 06:53:05 +00:00
Merge #3356
3356: Fix warnings introduced by #3349 r=flip1995 a=flip1995 I missed these warnings during review, should have checked the Travis log first. Co-authored-by: flip1995 <hello@philkrones.com>
This commit is contained in:
commit
44fb29a356
@ -49,7 +49,7 @@ impl LintPass for Pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl EarlyLintPass for Pass {
|
impl EarlyLintPass for Pass {
|
||||||
fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &Crate) {
|
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &Crate) {
|
||||||
let metadata = if let Ok(metadata) = cargo_metadata::metadata_deps(None, true) {
|
let metadata = if let Ok(metadata) = cargo_metadata::metadata_deps(None, true) {
|
||||||
metadata
|
metadata
|
||||||
} else {
|
} else {
|
||||||
|
@ -44,7 +44,7 @@ impl LintPass for Pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl EarlyLintPass for Pass {
|
impl EarlyLintPass for Pass {
|
||||||
fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &Crate) {
|
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &Crate) {
|
||||||
let metadata = if let Ok(metadata) = cargo_metadata::metadata(None) {
|
let metadata = if let Ok(metadata) = cargo_metadata::metadata(None) {
|
||||||
metadata
|
metadata
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user