mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Fix the compilation error
This commit is contained in:
parent
d4a96e4a63
commit
ce7f77e475
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue