Skip to content

Commit

Permalink
Merge pull request #854 from aminya/directory-path
Browse files Browse the repository at this point in the history
Use `as_os_str()` instead of double dereferencing.
  • Loading branch information
ChrisDenton committed Nov 13, 2023
2 parents 17f9e01 + e6cc89b commit 7e58690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ impl Build {

for directory in self.include_directories.iter() {
cmd.args.push("-I".into());
cmd.args.push((**directory).into());
cmd.args.push(directory.as_os_str().into());
}

// If warnings and/or extra_warnings haven't been explicitly set,
Expand Down

0 comments on commit 7e58690

Please sign in to comment.