rust: init: remove doctest's `Error::from_errno` workaround
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 26 May 2025 15:29:14 +0000 (17:29 +0200)
committerBenno Lossin <lossin@kernel.org>
Wed, 11 Jun 2025 19:13:57 +0000 (21:13 +0200)
commitf744a5b68eead2cc73691e91182522c7d800245e
tree94cada1ffd8d4183c876fb5ca86487c6068efb8c
parentd2b7313fa21bbe7ce3c4147d84c1ccbc6d69b9db
rust: init: remove doctest's `Error::from_errno` workaround

Since commit 5ed147473458 ("rust: error: make conversion functions
public"), `Error::from_errno` is public.

Thus remove the workaround added in commit a30e94c29673 ("rust: init:
make doctests compilable/testable").

Suggested-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/all/20250526152914.2453949-2-ojeda@kernel.org
Signed-off-by: Benno Lossin <lossin@kernel.org>
rust/kernel/init.rs