mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
add doc_markdown clippy lint (#8552)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -156,7 +156,7 @@ fn should_use_alt_impl(ftype: &String, segment: &syn::PathSegment) -> bool {
|
||||
]
|
||||
.contains(&path.ident.to_string().as_str())
|
||||
{
|
||||
return true
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -179,7 +179,7 @@ pub fn get_bit_size(ftype: &str) -> u8 {
|
||||
}
|
||||
|
||||
/// Given the field type in a string format, checks if its type should be added to the
|
||||
/// StructFlags.
|
||||
/// `StructFlags`.
|
||||
pub fn is_flag_type(ftype: &str) -> bool {
|
||||
get_bit_size(ftype) > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user