We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f40c8 commit c792eb7Copy full SHA for c792eb7
src/types.rs
@@ -52,7 +52,7 @@ impl<'a> BytesOrWideString<'a> {
52
use std::os::unix::ffi::OsStrExt;
53
54
if let BytesOrWideString::Bytes(slice) = self {
55
- return PathBuf::from(OsStr::from_bytes(slice))
+ return PathBuf::from(OsStr::from_bytes(slice));
56
}
57
58
@@ -62,13 +62,13 @@ impl<'a> BytesOrWideString<'a> {
62
use std::os::windows::ffi::OsStringExt;
63
64
if let BytesOrWideString::Wide(slice) = self {
65
- return PathBuf::from(OsString::from_wide(slice))
+ return PathBuf::from(OsString::from_wide(slice));
66
67
68
69
if let BytesOrWideString::Bytes(b) = self {
70
if let Ok(s) = str::from_utf8(b) {
71
- return PathBuf::from(s)
+ return PathBuf::from(s);
72
73
74
unreachable!()
0 commit comments