]> git.lizzy.rs Git - rust.git/commitdiff
remove unused variable in compiletest
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 16 Mar 2016 19:00:34 +0000 (15:00 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 25 Mar 2016 18:07:19 +0000 (14:07 -0400)
src/compiletest/compiletest.rs

index 51bc9d71f883c19ce9b1f4f67d685fb611db6b5b..6c6a78a360b9eda4e65df952721e6a2e43832bbd 100644 (file)
@@ -126,12 +126,6 @@ fn make_absolute(path: PathBuf) -> PathBuf {
         }
     }
 
-    let filter = if !matches.free.is_empty() {
-        Some(matches.free[0].clone())
-    } else {
-        None
-    };
-
     Config {
         compile_lib_path: make_absolute(opt_path(matches, "compile-lib-path")),
         run_lib_path: make_absolute(opt_path(matches, "run-lib-path")),