mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Enforce writing log::<op>!(...) in CODE_STYLE.md
This commit is contained in:
parent
afa9c8f8f5
commit
5affdf1759
1 changed files with 1 additions and 0 deletions
|
@ -124,3 +124,4 @@ C: Into<String>, { ... }
|
|||
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::<op>!(...)` instead of importing `use log::<op>;` and invoking `<op>!(...)`. For example, write `log::info!("blah")`.
|
||||
|
|
Loading…
Reference in a new issue