Closed mre closed 8 years ago
You're probably using version 0.2.x of select, while the From<&str>
impl for Document
was added for the upcoming 0.3.x version. You should either use Document::from_str(str)
or depend on the git version of select by adding the following to your Cargo.toml:
[dependencies]
select = { git = "https://github.com/utkarshkukreti/select.rs" }
Perfect. It works like a charm! I decided to check out the newest version and go with the git repository. Thanks for your help.
Hi,
so I'm pretty sure the error is on my side but I can't find it. Sorry for the noob question :smile:. I can't compile the following code:
When running
cargo build
i get the following output:For some reason it requires a select::document::Document but looking at the test code, it should also handle an &str type: https://github.com/utkarshkukreti/select.rs/blob/master/tests/document_tests.rs#L13 What am I missing here?