Lonami / grammers

(tele)gramme.rs - use Telegram's API from Rust
https://t.me/gramme_rs
Apache License 2.0
535 stars 103 forks source link

Optimize Client.next_update signature #254

Closed dimentyy closed 1 month ago

dimentyy commented 1 month ago

This method does not return Ok(None), so Option is useless

Lonami commented 1 month ago

Thanks. I probably made it Option to handle the client being disconmected, but indeed that should probably be Err, not None.

Lonami commented 2 weeks ago

Actually maybe the reason was parity with Stream. Not sure.