diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2025-06-26 22:00:39 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-06-28 18:06:52 +0200 |
| commit | ce7c22b2e1fb1db467d33bd050546941ce82f21f (patch) | |
| tree | e948ab921d26ce70e3d54f333a850ce460cbd121 /tools/perf/scripts/python | |
| parent | Merge tag 'pin-init-v6.17-result-blanket' of https://github.com/Rust-for-Linu... (diff) | |
| download | linux-ce7c22b2e1fb1db467d33bd050546941ce82f21f.tar.gz linux-ce7c22b2e1fb1db467d33bd050546941ce82f21f.zip | |
rust: revocable: support fallible PinInit types
Currently, Revocable::new() only supports infallible PinInit
implementations, i.e. impl PinInit<T, Infallible>.
This has been sufficient so far, since users such as Devres do not
support fallibility.
Since this is about to change, make Revocable::new() generic over the
error type E.
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20250626200054.243480-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
