bytesnake / telebot

Write Telegram bots in Rust with Tokio and Futures
Other
212 stars 33 forks source link

Unused `enum ParseMode` #49

Closed Gowee closed 6 years ago

Gowee commented 6 years ago

Hi.

There is https://github.com/bytesnake/telebot/blob/fc5bdaff33ebeb13170b67dfa3bd4a3c9e4386ae/src/functions.rs#L18

But it seems that it is not used anywhere

(

bytesnake commented 6 years ago

before 46c353633ddccf6720a5d251537b557aba0c7e8b you could use parse_mode as a function on any struct implementing it and feed it either with a String or the ParseMode struct (which implemented the Into trait) But it is more sane to accept only ParseMode.