aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/lints')
-rw-r--r--components/plugins/lints/transmute_type.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/lints/transmute_type.rs b/components/plugins/lints/transmute_type.rs
index 8f9f4d7ce6b..ef2806f5f2f 100644
--- a/components/plugins/lints/transmute_type.rs
+++ b/components/plugins/lints/transmute_type.rs
@@ -28,8 +28,8 @@ impl LateLintPass for TransmutePass {
match expr.node {
hir::ExprPath(_, ref path) => {
if path.segments.last()
- .map_or(false, |ref segment| segment.identifier.name.as_str() == "transmute")
- && args.len() == 1 {
+ .map_or(false, |ref segment| segment.identifier.name.as_str() == "transmute") &&
+ args.len() == 1 {
let tcx = cx.tcx;
cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span,
&format!("Transmute to {:?} from {:?} detected",