Fix the compilation error

This commit is contained in:
Temirkhan Myrzamadi 2020-01-03 00:46:13 +06:00
parent d4a96e4a63
commit ce7f77e475

View file

@ -33,11 +33,13 @@ impl Bot {
}
impl Bot {
pub const fn token(&self) -> &str {
// TODO: const fn
pub fn token(&self) -> &str {
&self.token
}
pub const fn client(&self) -> &Client {
// TODO: const fn
pub fn client(&self) -> &Client {
&self.client
}
}