diff --git a/CODE_STYLE.md b/CODE_STYLE.md index 6dc4e2a8..aaa9a311 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -111,3 +111,7 @@ impl<'a> AnswerCallbackQuery<'a> { C: Into, { ... } ``` + +# 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).