houqp / leptess

Productive and safe Rust binding for leptonica and tesseract
https://houqp.github.io/leptess/leptess/index.html
MIT License
259 stars 29 forks source link

return error in pix read operations #24

Closed houqp closed 4 years ago

houqp commented 4 years ago

After reading through the source code, I noticed leptonica actually returns null pointers to indicate errors, so we should return a Result instead to keep the semantic consistent.

Also bumps version for leptonica-sys and fixes clippy error in master head.

houqp commented 4 years ago

FYI @kangalioo