Remove unnecessary docs check

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
Mohammed Alotaibi 2023-09-20 03:34:22 +03:00 committed by GitHub
parent c0a6e00520
commit 4096f8b443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ impl CommandAttrs {
d.strip_prefix(' ').unwrap_or(&d),
attr.sp,
);
if is_doc && matches!(this.description, Some((_, false, _))) {
if is_doc {
if let Some((_, is_doc, _)) = &mut this.description {
*is_doc = true;
}