rust: macros: add descriptive doc-comment to internal fmt function
PATCH 1/1 rust: macros: add descriptive doc-comment to internal fmt function
Add descriptive documentation comments to the internal formatting function,
explaining its role in parsing format strings and wrapping arguments into
the Adapter helper.
Signed-off-by Ivan Tverdokhleb <[email protected]>
--- rust/macros/fmt.rs | 3 +++ 1 file changed, 3 insertions(+)
rust/macros/fmt.rs +3 -0
@@ -6,6 +6,9 @@use quote::quote_spanned;/// Please see [`crate::fmt`] for documentation. +/// +/// This function parses the format string, extracts named arguments from curly braces, +/// and wraps arguments into the `Adapter` helper. pub (crate )fn fmt (input:TokenStream ) ->TokenStream {let mut input = input.into_iter ();
Signature · 1 line
2.56.0
Hi,
Friendly ping on this patch.
Thanks,
Ivan
чт, 29 окт. 2026 г. в 17:02, Ivan Tverdokhleb <[email protected]>:
Quoted 29 lines
Add descriptive documentation comments to the internal formatting function,
explaining its role in parsing format strings and wrapping arguments into
the Adapter helper.
Signed-off-by Ivan Tverdokhleb <[email protected]>--- rust/macros/fmt.rs | 3 +++ 1 file changed, 3 insertions(+)rust/macros/fmt.rs +3
-1@@ -6,6 +6,9 @@use quote::quote_spanned;/// Please see [`crate::fmt`] for documentation. +/// +/// This function parses the format string, extracts named arguments from curly braces, +/// and wraps arguments into the `Adapter` helper. pub (crate )fn fmt (input:TokenStream ) ->TokenStream {let mut input = input.into_iter (); --2.56.0