ritiek / rafy-rs

Rust library to download YouTube content and retrieve metadata
MIT License
50 stars 10 forks source link

Initial refactor of Error handling to use Error-chain instead. #8

Closed alatiera closed 6 years ago

alatiera commented 7 years ago

Notice the version change on Cargo.toml cause this breaks the api. If accepted I don't recommend pushing straight to cargo. I am also working at proxying some more .unwraps() up the chain, that would also probably break the api.

Error-chain is probably the easiest and best way to implement Send trait. The rust book doesn't recommend impl Send by hand.

Need feedback about the VideoNotFound error type.

alatiera commented 7 years ago

This also takes care of #6.