Skip to content

Commit

Permalink
refactor: use into_string from OsString
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoccesar committed Nov 29, 2024
1 parent 8c11b68 commit 6bf4425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkup-cli/src/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Linkup {
fn load() -> Result<Self, CliError> {
let dir_path = linkup_dir_path();
let files: Vec<String> = fs::read_dir(&dir_path)?
.map(|f| f.unwrap().file_name().to_str().unwrap().to_string())
.map(|f| f.unwrap().file_name().into_string().unwrap())
.collect();

Ok(Self {
Expand Down

0 comments on commit 6bf4425

Please sign in to comment.