From e473d58770ee56a12fa5ea207d726ced646057ec Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 25 Jan 2020 04:47:47 +0600 Subject: [PATCH] Update CODE_STYLE.md --- CODE_STYLE.md | 4 ++++ 1 file changed, 4 insertions(+) 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).