mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
fix macro
This commit is contained in:
@@ -42,6 +42,10 @@ pub fn derive_description_from_doc(item: TokenStream) -> TokenStream {
|
||||
TokenTree::Ident(ident) => {
|
||||
// Capture the enum variant name and associate it with its description
|
||||
let ident_str = ident.to_string();
|
||||
// this is a quick fix for derive(EnumDiscriminants)
|
||||
if ident_str == "strum_discriminants" {
|
||||
continue;
|
||||
}
|
||||
if let Some(desc) = &last_seen_desc {
|
||||
variant_description_map.insert(ident_str.clone(), desc.clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user