chiark / gitweb /
Apply many uncontroversial style fixes from Clippy.
authorSimon Tatham <anakin@pobox.com>
Sat, 6 Jan 2024 00:23:00 +0000 (00:23 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 6 Jan 2024 09:28:09 +0000 (09:28 +0000)
commita3f63d1e9d2f9f46e430a8f3f39659dda3f78402
tree7d4941ce49498fbfb726c8218f635b429abb9262
parenteeec8d323894d9015b586a94db7497c2080be8c2
Apply many uncontroversial style fixes from Clippy.

I ran 'cargo clippy fix', picked out the changes I didn't disagree
with, and reformatted a few overlong lines that resulted. It's a
combination of redundant clones and borrows, what Clippy considers to
be the antipattern of assert_eq!(boolean, true), and failure to use
the full vocabulary of standard methods like Option::is_none,
Result::is_ok, and the various and_then() or map() etc combinators.
12 files changed:
src/activity_stack.rs
src/client.rs
src/coloured_string.rs
src/editor.rs
src/file.rs
src/html.rs
src/login.rs
src/main.rs
src/posting.rs
src/scan_re.rs
src/text.rs
src/tui.rs