-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed incorrect comment form suggestion
chore: Ran cargo dev fmt chore: Fixed spacing fix: Fixed spacing for comment suggestion fix: Added new module level test to too_long_first_doc_paragraph chore: Ran cargo uibless
- Loading branch information
1 parent
a53614a
commit d66e9ad
Showing
3 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
error: first doc comment paragraph is too long | ||
--> tests/ui/too_long_first_doc_paragraph.rs:5:1 | ||
--> tests/ui/too_long_first_doc_paragraph.rs:8:5 | ||
| | ||
LL | / //! A very short summary. | ||
LL | | //! A much longer explanation that goes into a lot more detail about | ||
LL | | //! how the thing works, possibly with doclinks and so one, | ||
LL | | //! and probably spanning a many rows. Blablabla, it needs to be over | ||
LL | | //! 200 characters so I needed to write something longeeeeeeer. | ||
| |____^ | ||
| | ||
= note: `-D clippy::too-long-first-doc-paragraph` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::too_long_first_doc_paragraph)]` | ||
help: add an empty line | ||
| | ||
LL ~ //! A very short summary. | ||
LL + //! | ||
LL ~ //! A much longer explanation that goes into a lot more detail about | ||
| | ||
|
||
error: first doc comment paragraph is too long | ||
--> tests/ui/too_long_first_doc_paragraph.rs:15:1 | ||
| | ||
LL | / /// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia | ||
LL | | /// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero, | ||
LL | | /// gravida non lacinia at, rhoncus eu lacus. | ||
| |_ | ||
| | ||
= note: `-D clippy::too-long-first-doc-paragraph` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::too_long_first_doc_paragraph)]` | ||
|
||
error: first doc comment paragraph is too long | ||
--> tests/ui/too_long_first_doc_paragraph.rs:26:1 | ||
--> tests/ui/too_long_first_doc_paragraph.rs:36:1 | ||
| | ||
LL | / /// Lorem | ||
LL | | /// ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia | ||
LL | | /// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero, | ||
LL | | /// gravida non lacinia at, rhoncus eu lacus. | ||
| |_ | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 3 previous errors | ||
|