Skip to content

Commit ee1c3ae

Browse files
nbdd0121BennoLossin
authored andcommitted
rust: macros: use quote! for module! macro
This has no behavioural change, but is good for maintainability. With `quote!`, we're no longer using string templates, so we don't need to quote " and {} inside the template anymore. Further more, editors can now highlight the code template. This also improves the robustness as it eliminates the need for string quoting and escaping. Co-developed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Gary Guo <gary@garyguo.net> Signed-off-by: Benno Lossin <lossin@kernel.org>
1 parent b30ade6 commit ee1c3ae

1 file changed

Lines changed: 286 additions & 257 deletions

File tree

0 commit comments

Comments
 (0)