diff --git a/lib.rs b/lib.rs index c75389b..0a219d7 100644 --- a/lib.rs +++ b/lib.rs @@ -22,7 +22,6 @@ pub fn which>(name: S) -> Option { let dirs_iter = paths_iter.filter_map(|path| fs::read_dir(path).ok()); for dir in dirs_iter { - // let mut matches_iter = dir.filter_map(|file| file.ok()) .filter(|file| file.file_name() == name) .filter(is_executable); -- 2.51.2 From 2201de1e054770f03ad2d62cf668c80c5a71d8ec Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 24 Apr 2016 22:37:33 -0400 Subject: [PATCH 2/4] Tweak README description. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1da5e4..212441e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # rust-which -The `which` utility, written as a Rust library. +A Rust port of the `which` utility. Locates an executable in the user's path. ## License -- 2.51.2 From b4f236b0837c2b26c5ddada7866545a3d743ee8f Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 24 Apr 2016 22:41:31 -0400 Subject: [PATCH 3/4] Add Cargo metadata. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 62fe39e..6db4762 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,10 @@ name = "which" version = "0.1.0" authors = ["Corey Farwell "] +description = "A Rust port of the `which` utility. Locates an executable in the user's path." +keywords = ["which", "path", "executable", "env", "locate"] +repository ="https://github.com/frewsxcv/rust-which" +license = "MIT/Apache-2.0" [lib] path = "lib.rs" -- 2.51.2 From 7a0b1f319869b94becd99761e188b80d3483bf49 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 24 Apr 2016 22:41:46 -0400 Subject: [PATCH 4/4] Bump version to 1.0.0. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6db4762..8391ee2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "which" -version = "0.1.0" +version = "1.0.0" authors = ["Corey Farwell "] description = "A Rust port of the `which` utility. Locates an executable in the user's path." keywords = ["which", "path", "executable", "env", "locate"]