aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/cli.py
diff options
context:
space:
mode:
authorDaniel Sedlak <[email protected]>2024-11-23 09:50:31 +0000
committerMiguel Ojeda <[email protected]>2025-01-13 22:45:05 +0000
commitb6357e26865a25650e49c4eb5abe6ef57ae4ede1 (patch)
tree67e858041de3d2848cb6eb9cc812f5994ac08d3e /tools/net/ynl/pyynl/cli.py
parentrust: page: remove unnecessary helper function from doctest (diff)
downloadkernel-b6357e26865a25650e49c4eb5abe6ef57ae4ede1.tar.gz
kernel-b6357e26865a25650e49c4eb5abe6ef57ae4ede1.zip
rust: str: replace unwraps with question mark operators
Simplify the error handling by replacing unwraps with the question mark operator. Furthermore, 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/ Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Slightly reworded commit. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions