diff options
| author | Nell Shamrell-Harrington <nells@linux.microsoft.com> | 2024-04-11 22:53:31 +0000 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2024-05-05 18:09:04 +0200 |
| commit | 4a2ae8805129d45287ef82172fd38f7ed0ddc31f (patch) | |
| tree | ebd8d711b03ba82e356674e5cb4333dce075e477 /scripts/generate_rust_target.rs | |
| parent | rust: update `dbg!()` to format column number (diff) | |
| download | linux-4a2ae8805129d45287ef82172fd38f7ed0ddc31f.tar.gz linux-4a2ae8805129d45287ef82172fd38f7ed0ddc31f.zip | |
rust: remove unneeded `kernel::prelude` imports from doctests
Rust doctests implicitly include `kernel::prelude::*`.
Removes explicit `kernel::prelude` imports from doctests.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1064
Signed-off-by: Nell Shamrell-Harrington <nells@linux.microsoft.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240411225331.274662-1-nells@linux.microsoft.com
[ Add it back for `module_phy_driver`'s example since it is within a `mod`,
and thus it cannot be removed. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
