From 328c120902e15ba19bfe9eee01f0163542057a65 Mon Sep 17 00:00:00 2001 From: Belhorma Bendebiche Date: Mon, 22 Feb 2016 16:28:46 -0500 Subject: [PATCH] Include test code when linting --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 69340e0..0fd5c00 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,7 @@ fn wrap_args(it: I, clippy_path: P) -> Vec args.push("-L".to_owned()); args.push(clippy_path.as_ref().to_string_lossy().into_owned()); args.push("-lclippy".to_owned()); + args.push("--test".to_owned()); args.push("-Zextra-plugins=clippy".to_owned()); args.push("-Zno-trans".to_owned()); args