]> www.infradead.org Git - users/hch/misc.git/commit
rust: replace rustdoc references to alloc::format
authorAndrew Ballance <andrewjballance@gmail.com>
Tue, 25 Mar 2025 13:33:52 +0000 (08:33 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 11 May 2025 22:20:25 +0000 (00:20 +0200)
commitedc5e6e019c99b529b3d1f2801d5cce9924ae79b
tree092a16f180f21fd6389ef6ec8f64db19262bc199
parent86d990c7b699581918de2a379c6eebac7292940e
rust: replace rustdoc references to alloc::format

Replace alloc::format[1] in the pr_* and dev_* macros' doc comments
with std::format[2] because they are identical but less likely to get
confused with the kernel's alloc crate.

And add a url link for the std::format! macro.

Link: https://doc.rust-lang.org/alloc/macro.format.html
Link: https://doc.rust-lang.org/std/macro.format.html
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
Link: https://lore.kernel.org/r/20250325133352.441425-1-andrewjballance@gmail.com
[ Fixed typo and reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/device.rs
rust/kernel/print.rs