You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: match arms have incompatible types ] 0/2: open
--> src\lib.rs:68:13
|
68 | / match path_ref.to_str() {
69 | | Some(s) => s.replace("&", "^&"),
70 | | None => path_ref,
| | -------- match arm with an incompatible type
71 | | }
| |_____________^ expected struct `std::string::String`, found reference
|
= note: expected type `std::string::String`
found type `&std::ffi::OsStr`
I'm planning on sending a PR that replaces the Windows code with the approach rustup uses anyways, which will take care of this issue too.
The text was updated successfully, but these errors were encountered:
The code is adapted from rustup. Using ShellExecute is more efficient
and allows much better error handling. It also avoids some bugs, which
is the reason rustup switched to using this method.
FixesByron#16
The code is adapted from rustup. Using ShellExecute is more efficient
and allows much better error handling. It also avoids some bugs, which
is the reason rustup switched to using this method.
Fixes#16
The last commit broke the build on Windows:
I'm planning on sending a PR that replaces the Windows code with the approach rustup uses anyways, which will take care of this issue too.
The text was updated successfully, but these errors were encountered: