diff options
| author | Michael Wright <mikerite@lavabit.com> | 2019-01-20 10:14:23 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2019-01-20 10:14:23 +0200 |
| commit | 77b71a1af2eb1b8370305f967f53597faf279d76 (patch) | |
| tree | c98f44dc3271c4877025e5469475db538cbc3838 | |
| parent | e648adf0866a1cea7db6ce2d33ea86e442f25377 (diff) | |
| download | rust-77b71a1af2eb1b8370305f967f53597faf279d76.tar.gz rust-77b71a1af2eb1b8370305f967f53597faf279d76.zip | |
Fix breakage due to rust-lang/rust#57755
| -rw-r--r-- | clippy_lints/src/write.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs index bb62cdeb9ed..c8c291c8cc8 100644 --- a/clippy_lints/src/write.rs +++ b/clippy_lints/src/write.rs @@ -5,7 +5,7 @@ use rustc_errors::Applicability; use std::borrow::Cow; use syntax::ast::*; use syntax::parse::{parser, token}; -use syntax::tokenstream::{ThinTokenStream, TokenStream}; +use syntax::tokenstream::TokenStream; /// **What it does:** This lint warns when you use `println!("")` to /// print a newline. @@ -261,9 +261,9 @@ impl EarlyLintPass for Pass { /// ```rust,ignore /// (Some("string to write: {}"), Some(buf)) /// ``` -fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -> (Option<String>, Option<Expr>) { +fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &TokenStream, is_write: bool) -> (Option<String>, Option<Expr>) { use fmt_macros::*; - let tts = TokenStream::from(tts.clone()); + let tts = tts.clone(); let mut parser = parser::Parser::new(&cx.sess.parse_sess, tts, None, false, false); let mut expr: Option<Expr> = None; if is_write { |
