Skip to content

Commit 3957f5d

Browse files
committed
lint error fix
1 parent 74808b4 commit 3957f5d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/error_glossary/src/extraction.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ fn extract_doc_comment(attrs: &[syn::Attribute]) -> Option<String> {
173173
.trim()
174174
.to_string();
175175

176-
if text.is_empty() {
177-
None
178-
} else {
179-
Some(text)
180-
}
176+
if text.is_empty() { None } else { Some(text) }
181177
}
182178

183179
struct ErrorCodeAttrParsed {

0 commit comments

Comments
 (0)