diff options
| author | Daniel Sedlak <[email protected]> | 2024-11-23 09:50:28 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-01-13 22:44:13 +0000 |
| commit | 7eeb0e7a50b8f13094f164c126ca9c0d75241d35 (patch) | |
| tree | 7e90c2d559b4f46d2d5d230ccd5fa1cdfa209b9b /tools/net/ynl/pyynl/cli.py | |
| parent | rust: use host dylib naming convention to support macOS (diff) | |
| download | kernel-7eeb0e7a50b8f13094f164c126ca9c0d75241d35.tar.gz kernel-7eeb0e7a50b8f13094f164c126ca9c0d75241d35.zip | |
rust: init: replace unwraps with question mark operators
Use `?` operator in the doctests. Since it is in the examples,
using unwraps can convey a wrong impression that unwrapping is
fine in general, thus this patch removes this unwrapping.
Suggested-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/rust-for-linux/CANiq72nsK1D4NuQ1U7NqMWoYjXkqQSj4QuUEL98OmFbq022Z9A@mail.gmail.com/
Signed-off-by: Daniel Sedlak <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Reworded commit 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
