summaryrefslogtreecommitdiff
path: root/samples/rust/rust_print_main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/rust/rust_print_main.rs')
-rw-r--r--samples/rust/rust_print_main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/rust/rust_print_main.rs b/samples/rust/rust_print_main.rs
index 7e8af5f176a3..682207c81fc2 100644
--- a/samples/rust/rust_print_main.rs
+++ b/samples/rust/rust_print_main.rs
@@ -8,7 +8,7 @@ use kernel::prelude::*;
module! {
type: RustPrint,
name: "rust_print",
- author: "Rust for Linux Contributors",
+ authors: ["Rust for Linux Contributors"],
description: "Rust printing macros sample",
license: "GPL",
}
@@ -40,7 +40,7 @@ fn arc_print() -> Result {
// behaviour, contract or protocol on both `i32` and `&str` into a single `Arc` of
// type `Arc<dyn Display>`.
- use core::fmt::Display;
+ use kernel::fmt::Display;
fn arc_dyn_print(arc: &Arc<dyn Display>) {
pr_info!("Arc<dyn Display> says {arc}");
}
@@ -101,7 +101,7 @@ impl Drop for RustPrint {
}
mod trace {
- use kernel::ffi::c_int;
+ use kernel::prelude::*;
kernel::declare_trace! {
/// # Safety