diff options
| author | Miguel Ojeda <[email protected]> | 2025-05-26 18:01:42 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-05-27 18:09:59 +0000 |
| commit | 1486554392e242da5cbe95092d8dfec887bb8cca (patch) | |
| tree | 62548be013936e9dfac2cb97577d0c49b34d673b /scripts/bpf_helpers_doc.py | |
| parent | rust: str: convert `rusttest` tests into KUnit (diff) | |
| download | kernel-1486554392e242da5cbe95092d8dfec887bb8cca.tar.gz kernel-1486554392e242da5cbe95092d8dfec887bb8cca.zip | |
rust: str: simplify KUnit tests `format!` macro
Simplify the `format!` macro used in the tests by using
`CString::try_from_fmt` and directly `unwrap()`ing.
This will allow us to change both `unwrap()`s here in order to showcase
the `?` operator support now that the tests are KUnit ones.
Reviewed-by: David Gow <[email protected]>
Acked-by: Danilo Krummrich <[email protected]>
[ Split from the next commit as suggested by Tamir. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions
