This commit is contained in:
dasha_uwu authored and Jason Volk committed 2026-01-26 19:28:56 +00:00
1 parent 6db87a4027
commit fbedd713ca
1 file changed
+2 -3
+2 -3
View File
@@ -29,7 +29,6 @@ pub(super) fn example_generator(input: ItemStruct, args: &[Meta]) -> Result<Toke
}
#[allow(clippy::needless_pass_by_value)]
#[allow(unused_variables)]
fn generate_example(input: &ItemStruct, args: &[Meta], write: bool) -> Result<TokenStream2> {
let settings = get_simple_settings(args);
@@ -89,9 +88,9 @@ fn generate_example(input: &ItemStruct, args: &[Meta], write: bool) -> Result<To
continue;
}
let Some(type_name) = get_type_name(field) else {
if get_type_name(field).is_none() {
continue;
};
}
let doc = get_doc_comment(field)
.unwrap_or_else(|| undocumented.into())