mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Merge pull request #358 from teloxide/log-code-style
Enforce writing log::<op>!(...) in CODE_STYLE.md
This commit is contained in:
commit
b1cb87270d
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