aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2025-05-02 21:51:30 +0000
committerMiguel Ojeda <[email protected]>2025-05-27 18:09:59 +0000
commit2d6c87d0d6a0c0acf6b4dd9eec9ed44a82886836 (patch)
treed4d3d52fc4dfc1ef186cfc2387b2ef6cc7fc69cb /lib/crypto/mpi/mpi-cmp.c
parentrust: str: simplify KUnit tests `format!` macro (diff)
downloadkernel-2d6c87d0d6a0c0acf6b4dd9eec9ed44a82886836.tar.gz
kernel-2d6c87d0d6a0c0acf6b4dd9eec9ed44a82886836.zip
rust: str: take advantage of the `-> Result` support in KUnit `#[test]`'s
Since now we have support for returning `-> Result`s, we can convert some of these tests to use the feature, and serve as a first user for it too. Thus convert them, which allows us to remove some `unwrap()`s. We keep the actual assertions we want to make as explicit ones with `assert*!`s. Reviewed-by: David Gow <[email protected]> Acked-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Split the `CString` simplification into a new commit. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions