minidom compiling error
rustc --version
: rustc 1.45.2
Compiling minidom v0.12.0
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> /home/genofire/.cargo/registry/src/github.com-1ecc6299db9ec823/minidom-0.12.0/src/element.rs:412:32
|
412 | let text = reader.decode(&s)?.to_owned();
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `std::borrow::Cow<'_, str>`
|
= help: the trait `std::ops::Try` is not implemented for `std::borrow::Cow<'_, str>`
= note: required by `std::ops::Try::into_result`
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> /home/genofire/.cargo/registry/src/github.com-1ecc6299db9ec823/minidom-0.12.0/src/element.rs:425:35
|
425 | let comment = reader.decode(&s)?.to_owned();
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `std::borrow::Cow<'_, str>`
|
= help: the trait `std::ops::Try` is not implemented for `std::borrow::Cow<'_, str>`
= note: required by `std::ops::Try::into_result`
error: aborting due to 2 previous errors
Edited by genofire