Skip to content

Commit

Permalink
Auto merge of #12750 - cakebaker:patch-1, r=Alexendoo
Browse files Browse the repository at this point in the history
`assigning_clones`: add empty line to doc

changelog: none

This PR adds, for consistency reasons, an empty line to the example in the doc of the `assigning_clones` lint.
  • Loading branch information
bors committed May 2, 2024
2 parents 20b085d + 63cb56e commit 60267b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/assigning_clones.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ declare_clippy_lint! {
/// Use instead:
/// ```rust
/// struct Thing;
///
/// impl Clone for Thing {
/// fn clone(&self) -> Self { todo!() }
/// fn clone_from(&mut self, other: &Self) { todo!() }
Expand Down

0 comments on commit 60267b2

Please sign in to comment.