Fix warnings introduced by #3349

This commit is contained in:
flip1995 2018-10-24 16:18:01 +02:00
parent 319b75c75b
commit 57a18b6520
No known key found for this signature in database
GPG Key ID: ECF9412261FAA470
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ fn get_lints(&self) -> LintArray {
}
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) {
metadata
} else {

View File

@ -44,7 +44,7 @@ fn get_lints(&self) -> LintArray {
}
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) {
metadata
} else {