mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Update CODE_STYLE.md
This commit is contained in:
parent
2f086daf8e
commit
e473d58770
1 changed files with 4 additions and 0 deletions
|
@ -111,3 +111,7 @@ impl<'a> AnswerCallbackQuery<'a> {
|
|||
C: Into<String>, { ... }
|
||||
```
|
||||
</details>
|
||||
|
||||
# Naming
|
||||
1. Avoid unnecessary duplication (`Message::message_id` -> `Message::id` using `#[serde(rename = "message_id")]`).
|
||||
2. Use a generic parameter name `S` for streams, `Fut` for futures, `F` for functions (where possible).
|
||||
|
|
Loading…
Reference in a new issue