fixes complaints about missing docs (#4551)
# Objective When using `derive(WorldQuery)`, then clippy complains with the following: ```rust warning: missing documentation for a struct --> src\wild_boar_type\marker_vital_status.rs:35:17 | 35 | #[derive(Debug, WorldQuery)] | ^^^^^^^^^^ | = note: this warning originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) ``` ## Solution * Either `#[doc(hidden)]` or * Add a generic documentation line to it. I don't know what is preferred, but I'd gladly add it in here.
This commit is contained in:
		
							parent
							
								
									18c6a7b40e
								
							
						
					
					
						commit
						7a0f46c21b
					
				| @ -280,6 +280,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream { | |||||||
|         } else { |         } else { | ||||||
|             quote! { |             quote! { | ||||||
|                 #derive_macro_call |                 #derive_macro_call | ||||||
|  |                 #[automatically_derived] | ||||||
|                 #visibility struct #item_struct_name #impl_generics #where_clause { |                 #visibility struct #item_struct_name #impl_generics #where_clause { | ||||||
|                     #(#(#field_attrs)* #field_visibilities #field_idents: <<#field_types as #path::query::WorldQuery>::#fetch_associated_type as #path::query::Fetch<#world_lifetime, #world_lifetime>>::Item,)* |                     #(#(#field_attrs)* #field_visibilities #field_idents: <<#field_types as #path::query::WorldQuery>::#fetch_associated_type as #path::query::Fetch<#world_lifetime, #world_lifetime>>::Item,)* | ||||||
|                     #(#(#ignored_field_attrs)* #ignored_field_visibilities #ignored_field_idents: #ignored_field_types,)* |                     #(#(#ignored_field_attrs)* #ignored_field_visibilities #ignored_field_idents: #ignored_field_types,)* | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 CGMossa
						CGMossa