Skip to content

Commit 0f5bcda

Browse files
committed
fix lint error
1 parent 3957f5d commit 0f5bcda

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apps/error_glossary/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "error_glossary"
3-
edition = "2021"
3+
edition = "2024"
44
version.workspace = true
55
license.workspace = true
66
description = "Generates a markdown error glossary from ErrorCode-deriving types"

apps/error_glossary/src/extraction.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,13 @@ fn extract_doc_comment(attrs: &[syn::Attribute]) -> Option<String> {
148148
.iter()
149149
.filter(|a| a.path().is_ident("doc"))
150150
.filter_map(|a| {
151-
if let syn::Meta::NameValue(nv) = &a.meta {
152-
if let syn::Expr::Lit(syn::ExprLit {
151+
if let syn::Meta::NameValue(nv) = &a.meta
152+
&& let syn::Expr::Lit(syn::ExprLit {
153153
lit: syn::Lit::Str(s),
154154
..
155155
}) = &nv.value
156-
{
157-
return Some(s.value());
158-
}
156+
{
157+
return Some(s.value());
159158
}
160159
None
161160
})

0 commit comments

Comments
 (0)