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