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
Filenames on Unix can be arbitrary bytes; on Windows they can be arbitrary UTF16 (and I think there's some strangeness around surrogate pairs).
error[E0277]: the trait bound `std::string::String: std::convert::From<std::path::PathBuf>` is not satisfied
--> src/main.rs:108:27
|
108 | let file_id = file_db.add(opt.filename, buf);
| ^^^ the trait `std::convert::From<std::path::PathBuf>` is not implemented for `std::string::String`
|
= help: the following implementations were found:
<std::string::Stringas std::convert::From<&std::string::String>>
<std::string::Stringas std::convert::From<&str>>
<std::string::Stringas std::convert::From<rcc::data::LengthError>>
<std::string::Stringas std::convert::From<std::borrow::Cow<'a,str>>>
<std::string::Stringas std::convert::From<std::boxed::Box<str>>>
= note: required because of the requirements on the impl of `std::convert::Into<std::string::String>` for `std::path::PathBuf`
The text was updated successfully, but these errors were encountered:
Filenames on Unix can be arbitrary bytes; on Windows they can be arbitrary UTF16 (and I think there's some strangeness around surrogate pairs).
The text was updated successfully, but these errors were encountered: