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[E0277]: `Rc<kuchiki::tree::Node>` cannot be shared between threads safely
--> src/websites/gogoplay/parsers.rs:11:20
|
11 | static PARSER:OnceCell<Pattern> = Pattern::new(
| ^^^^^^^^^^^^^^^^^ `Rc<kuchiki::tree::Node>` cannot be shared between threads safely
|
= help: within `easy_scraper::Pattern`, the trait `Sync` is not implemented for `Rc<kuchiki::tree::Node>`
= note: required because it appears within the type `kuchiki::tree::NodeRef`
= note: required because it appears within the type `easy_scraper::Pattern`
= note: required because of the requirements on the impl of `Sync` for `once_cell::imp::OnceCell<easy_scraper::Pattern>`
= note: required because it appears within the type `once_cell::sync::OnceCell<easy_scraper::Pattern>`
= note: shared static variables must have a type that implements `Sync`
A thread safe version would be very usefull for keeping a static OnceCell to prevent recompiling the same pattern over and over again
The text was updated successfully, but these errors were encountered:
A thread safe version would be very usefull for keeping a static OnceCell to prevent recompiling the same pattern over and over again
The text was updated successfully, but these errors were encountered: