summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-11-10 19:41:27 +0300
committerMiguel Ojeda <ojeda@kernel.org>2022-12-04 03:59:15 +0300
commit650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (patch)
tree6ecbba36daeb21d8ede719688995c7205e17f8ba /block
parent7c5977464681c2ec603efcac32a9432bcd355f12 (diff)
downloadlinux-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.tar.xz
rust: str: add `b_str!` macro
Add the `b_str!` macro, which creates a new `BStr` from a string literal. It is usable in const contexts, for instance: const X: &BStr = b_str!("Example"); Signed-off-by: Gary Guo <gary@garyguo.net> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions