Update CODE_STYLE.md

This commit is contained in:
Temirkhan Myrzamadi 2020-01-25 04:47:47 +06:00 committed by GitHub
parent 2f086daf8e
commit e473d58770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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).