aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2025-05-26 18:01:42 +0000
committerMiguel Ojeda <[email protected]>2025-05-27 18:09:59 +0000
commit1486554392e242da5cbe95092d8dfec887bb8cca (patch)
tree62548be013936e9dfac2cb97577d0c49b34d673b /net/unix/af_unix.c
parentrust: str: convert `rusttest` tests into KUnit (diff)
downloadkernel-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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions