diff options
| author | Daniel Sedlak <[email protected]> | 2024-11-23 09:50:29 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-01-13 22:44:29 +0000 |
| commit | 3a518544829630d172b067be8697e018e258c445 (patch) | |
| tree | 3b1c1ddc4660e29c2b3a437e97eb8e4ca6d43502 /tools/net/ynl/pyynl/cli.py | |
| parent | rust: init: replace unwraps with question mark operators (diff) | |
| download | kernel-3a518544829630d172b067be8697e018e258c445.tar.gz kernel-3a518544829630d172b067be8697e018e258c445.zip | |
rust: rbtree: remove unwrap in asserts
Remove `unwrap` in asserts and replace it with `Option::Some`
matching. By doing it this way, the examples are more
descriptive, so it disambiguates the return type of
the `get(...)` and `next(...)`, because the `unwrap(...)`
can also be called on `Result`.
Signed-off-by: Daniel Sedlak <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Reworded title slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
