Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f6957 commit cb6295dCopy full SHA for cb6295d
src/main.rs
@@ -123,8 +123,6 @@ fn extract_search_pattern(matches: &clap::ArgMatches) -> Result<&'_ str> {
123
}
124
125
fn extract_search_paths(matches: &clap::ArgMatches) -> Result<Vec<PathBuf>> {
126
- let current_directory = Path::new(".");
127
-
128
let parameter_paths = matches
129
.values_of_os("path")
130
.or_else(|| matches.values_of_os("search-path"));
@@ -145,6 +143,7 @@ fn extract_search_paths(matches: &clap::ArgMatches) -> Result<Vec<PathBuf>> {
145
143
})
146
144
.collect(),
147
None => {
+ let current_directory = Path::new(".");
148
ensure_current_directory_exists(current_directory)?;
149
vec![current_directory.to_path_buf()]
150
0 commit comments