fefit / visdom

A library use jQuery like API for html parsing & node selecting & node mutation, suitable for web scraping and html confusion.
MIT License
110 stars 6 forks source link

将`Result<Elements, Box<dyn Error>>` 改为`Result<Elements, Box<dyn Error + Send>>` #5

Closed zys864 closed 2 years ago

zys864 commented 2 years ago

可以将Result<Elements, Box<dyn Error>> 改为Result<Elements, Box<dyn Error + Send>>吗。以便与anyhow兼容

fefit commented 2 years ago

感谢建议,晚点将更新一版修改一下~

fefit commented 2 years ago

@zys864 0.4.12 已修改返回的错误类型为 Box<dyn Error + Send + Sync>,可以通过 .map(|e|anyhow!(e)) 来转换为 anyhow::Error;如果使用中还有问题,欢迎随时反馈~!感谢!