Skip to content

Commit

Permalink
Add rustdoc header to the struct constructors
Browse files Browse the repository at this point in the history
Otherwise it triggers the missing_docs warning on dependent projects

Signed-off-by: Alejandro G. Vallejo <[email protected]>
  • Loading branch information
Alejandro Vallejo committed Dec 7, 2023
1 parent 41843c8 commit 1b187c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bilge-impl/src/bitsize_internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fn generate_struct(struct_data: &ItemStruct, arb_int: &TokenStream) -> TokenStre
impl #ident {
// #[inline]
#[allow(clippy::too_many_arguments, clippy::type_complexity, unused_parens)]
/// Create a struct from its constituents
pub #const_ fn new(#( #constructor_args )*) -> Self {
type ArbIntOf<T> = <T as Bitsized>::ArbitraryInt;
type BaseIntOf<T> = <ArbIntOf<T> as Number>::UnderlyingType;
Expand Down

0 comments on commit 1b187c9

Please sign in to comment.