From 5affdf1759e1860a109d63069e5f50a1137bdc0c Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Sun, 28 Mar 2021 09:00:36 +0600 Subject: [PATCH] Enforce writing log::!(...) in CODE_STYLE.md --- CODE_STYLE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CODE_STYLE.md b/CODE_STYLE.md index 964aea8c..0fa0756b 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -124,3 +124,4 @@ C: Into, { ... } 1. Use `Into<...>` only where there exists at least one conversion **and** it will be logically to use. 2. Always mark a function as `#[must_use]` if its return value **must** be used. 3. `Box::pin(async [move] { ... })` instead of `async [move] { ... }.boxed()`. + 4. Always write `log::!(...)` instead of importing `use log::;` and invoking `!(...)`. For example, write `log::info!("blah")`.