Skip to content

Commit

Permalink
use std::env::current_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawarner32 committed Nov 23, 2021
1 parent 3f8c6be commit c017865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn main() -> io::Result<()> {
match maybe_values {
None => {
let mut os_string_values: Vec<OsString> = Vec::new();
read_all_roc_files(&OsStr::new("./").to_os_string(), &mut os_string_values)?;
read_all_roc_files(&std::env::current_dir()?.as_os_str().to_os_string(), &mut os_string_values)?;
for os_string in os_string_values {
values.push(os_string);
}
Expand Down Expand Up @@ -136,7 +136,7 @@ fn main() -> io::Result<()> {
match maybe_values {
None => {
let mut os_string_values: Vec<OsString> = Vec::new();
read_all_roc_files(&OsStr::new("./").to_os_string(), &mut os_string_values)?;
read_all_roc_files(&std::env::current_dir()?.as_os_str().to_os_string(), &mut os_string_values)?;
for os_string in os_string_values {
values.push(os_string);
}
Expand Down

0 comments on commit c017865

Please sign in to comment.