diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2021-07-29 11:14:25 +0200 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2021-07-29 11:14:25 +0200 |
| commit | 490beda6be3b45f419b2beb294f86e13754b91f9 (patch) | |
| tree | 6488de5867abe18648b4418fccfb41b6fe080c2c /clippy_lints/src/temporary_assignment.rs | |
| parent | 5331fea87543eee06da7eef9f9854e89e9b5c7f3 (diff) | |
| parent | 92ca25b3ec8cef291f1d3b37bfd01d3cce8609e2 (diff) | |
| download | rust-490beda6be3b45f419b2beb294f86e13754b91f9.tar.gz rust-490beda6be3b45f419b2beb294f86e13754b91f9.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/temporary_assignment.rs')
| -rw-r--r-- | clippy_lints/src/temporary_assignment.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/src/temporary_assignment.rs b/clippy_lints/src/temporary_assignment.rs index 8ef25dc816c..a9da690339c 100644 --- a/clippy_lints/src/temporary_assignment.rs +++ b/clippy_lints/src/temporary_assignment.rs @@ -5,15 +5,15 @@ use rustc_lint::{LateContext, LateLintPass}; use rustc_session::{declare_lint_pass, declare_tool_lint}; declare_clippy_lint! { - /// **What it does:** Checks for construction of a structure or tuple just to + /// ### What it does + /// Checks for construction of a structure or tuple just to /// assign a value in it. /// - /// **Why is this bad?** Readability. If the structure is only created to be + /// ### Why is this bad? + /// Readability. If the structure is only created to be /// updated, why not write the structure you want in the first place? /// - /// **Known problems:** None. - /// - /// **Example:** + /// ### Example /// ```rust /// (0, 0).0 = 1 /// ``` |
