Skip to content

Commit 7e58690

Browse files
authored
Merge pull request #854 from aminya/directory-path
Use `as_os_str()` instead of double dereferencing.
2 parents 17f9e01 + e6cc89b commit 7e58690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ impl Build {
16311631

16321632
for directory in self.include_directories.iter() {
16331633
cmd.args.push("-I".into());
1634-
cmd.args.push((**directory).into());
1634+
cmd.args.push(directory.as_os_str().into());
16351635
}
16361636

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

0 commit comments

Comments
 (0)