Re: [PATCH v8 28/31] samples: add Rust examples

From: Wei Liu
Date: Tue Aug 02 2022 - 16:07:16 EST


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.