File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " error_glossary"
3- edition = " 2021 "
3+ edition = " 2024 "
44version.workspace = true
55license.workspace = true
66description = " Generates a markdown error glossary from ErrorCode-deriving types"
Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments