lkml.org 
[lkml]   [2022]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.

\
 
 \ /
  Last update: 2022-08-02 22:04    [W:0.081 / U:4.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site