Messages in this thread | | | Date | Tue, 2 Aug 2022 20:04:30 +0000 | From | Wei Liu <> | Subject | Re: [PATCH v8 28/31] samples: add Rust examples |
| |
On Tue, Aug 02, 2022 at 05:07:56PM +0300, Konstantin Shelekhin wrote: > > +module! { > > + type: RustSemaphore, > > + name: b"rust_semaphore", > > + author: b"Rust for Linux Contributors", > > + description: b"Rust semaphore sample", > > + license: b"GPL", > > +} > > A minor neat, but ain't it possible to use &str here in order to drop > this ugly binary string prefix?
Their types are different. One is for u8. The other is for UTF-8.
Thanks, Wei.
| |