Ran bless and rustfmt
This commit is contained in:
parent
0b31b470ad
commit
d1a627ab3b
3 changed files with 42 additions and 8 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use rustc_lint::{LateLintPass, LateContext};
|
||||
use rustc_session::{declare_lint_pass, declare_tool_lint};
|
||||
use rustc_hir::*;
|
||||
use rustc_errors::Applicability;
|
||||
use if_chain::if_chain;
|
||||
use rustc_errors::Applicability;
|
||||
use rustc_hir::*;
|
||||
use rustc_lint::{LateContext, LateLintPass};
|
||||
use rustc_session::{declare_lint_pass, declare_tool_lint};
|
||||
|
||||
use crate::utils::span_lint_and_sugg;
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ declare_clippy_lint! {
|
|||
/// and complexity.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
///
|
||||
/// **Example:**
|
||||
///
|
||||
/// ```rust
|
||||
|
|
@ -77,6 +77,6 @@ fn is_primitive_integer_ty(ty: PrimTy) -> bool {
|
|||
match ty {
|
||||
PrimTy::Int(_) => true,
|
||||
PrimTy::Uint(_) => true,
|
||||
_ => false
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue