diff options
| author | Wedson Almeida Filho <[email protected]> | 2022-11-10 16:41:34 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2022-12-04 00:59:16 +0000 |
| commit | ef32054942ee8d78cbcc2c97212e55b6f5f668f7 (patch) | |
| tree | 8f559e3e167e3a738af52e38f8b9245e9a7e09c8 /scripts/generate_rust_analyzer.py | |
| parent | rust: str: add `CString` type (diff) | |
| download | kernel-ef32054942ee8d78cbcc2c97212e55b6f5f668f7.tar.gz kernel-ef32054942ee8d78cbcc2c97212e55b6f5f668f7.zip | |
rust: str: add `fmt!` macro
Add the `fmt!` macro, which is a convenience alias for the Rust
`core::format_args!` macro.
For instance, it may be used to create a `CString`:
CString::try_from_fmt(fmt!("{}{}", "abc", 42))?
Signed-off-by: Wedson Almeida Filho <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
