use rustc_lint::{EarlyContext, EarlyLintPass};
use rustc_session::{declare_lint_pass, declare_tool_lint};
use rustc_span::source_map::{BytePos, Span};
-use std::convert::TryFrom;
declare_clippy_lint! {
/// ### What it does
if let ast::AttrKind::DocComment(_, comment) = attr.kind {
let comment = comment.as_str();
- for (lo, hi) in get_chunks_of_tabs(&comment) {
+ for (lo, hi) in get_chunks_of_tabs(comment) {
// +3 skips the opening delimiter
let new_span = Span::new(
attr.span.lo() + BytePos(3 + lo),