Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rustup
  • Loading branch information
Manishearth committed Feb 3, 2021
1 parent 5c957b8 commit 6fb1075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/write.rs
Expand Up @@ -3,7 +3,7 @@ use std::ops::Range;

use crate::utils::{snippet_with_applicability, span_lint, span_lint_and_sugg, span_lint_and_then};
use if_chain::if_chain;
use rustc_ast::ast::{Expr, ExprKind, Item, ItemKind, LitKind, MacCall, StrLit, StrStyle};
use rustc_ast::ast::{Expr, ExprKind, ImplKind, Item, ItemKind, LitKind, MacCall, StrLit, StrStyle};
use rustc_ast::token;
use rustc_ast::tokenstream::TokenStream;
use rustc_errors::Applicability;
Expand Down Expand Up @@ -231,10 +231,10 @@ impl_lint_pass!(Write => [

impl EarlyLintPass for Write {
fn check_item(&mut self, _: &EarlyContext<'_>, item: &Item) {
if let ItemKind::Impl {
if let ItemKind::Impl (box ImplKind {
of_trait: Some(trait_ref),
..
} = &item.kind
}) = &item.kind
{
let trait_name = trait_ref
.path
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2021-01-30"
channel = "nightly-2021-02-03"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 comments on commit 6fb1075

Please sign in to comment.