diff options
author | 2024-11-23 10:50:31 +0100 | |
---|---|---|
committer | 2025-01-13 23:45:05 +0100 | |
commit | b6357e26865a25650e49c4eb5abe6ef57ae4ede1 (patch) | |
tree | 67e858041de3d2848cb6eb9cc812f5994ac08d3e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rust: page: remove unnecessary helper function from doctest (diff) | |
download | linux-rng-b6357e26865a25650e49c4eb5abe6ef57ae4ede1.tar.xz linux-rng-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 <ojeda@kernel.org>
Link: https://lore.kernel.org/rust-for-linux/CANiq72nsK1D4NuQ1U7NqMWoYjXkqQSj4QuUEL98OmFbq022Z9A@mail.gmail.com/
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Daniel Sedlak <daniel@sedlak.dev>
Link: https://lore.kernel.org/r/20241123095033.41240-5-daniel@sedlak.dev
[ Slightly reworded commit. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions