all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 0/8] clippy fixes
@ 2021-01-20 16:23 Fabian Grünbichler
  2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 1/8] clippy: add is_empty() when len() is implemented Fabian Grünbichler
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Fabian Grünbichler @ 2021-01-20 16:23 UTC (permalink / raw)
  To: pbs-devel

non-trivial clippy fixes and stuff I found while fixing clippy issues.
the remainder of warnings are now:

- one derive_hash_xor_eq (Authid)
- one module_inception (rrd)
- one missing_safety_docs
- one wrong_self_convention (to_canonical_json not taking &self)
- plenty complex types, too many arguments and missing Default impl when
types have a fn new() without args

which require individual attention to decide whether to refactor/fix, or
allow them.

when writing new commits, the following should cut down on the noise
until all of the above are addressed:

$ cargo clippy -- --allow clippy::type_complexity --allow clippy::new_without_default --allow clippy::too_many_arguments

Fabian Grünbichler (8):
  clippy: add is_empty() when len() is implemented
  clippy: fix Mutex with unused value
  clippy: rewrite comparison chains
  clippy: rewrite ifs with identical return values
  apt: let api handle optional bool with default
  rework GC traversal error handling
  http-client: fix typoed ticket cache condition
  http-client: further clippy cleanups

 src/api2/access.rs             | 32 +++++++++++++-------------------
 src/api2/backup/environment.rs |  4 +++-
 src/api2/node/apt.rs           |  7 ++-----
 src/api2/node/dns.rs           |  2 +-
 src/api2/node/tasks.rs         | 16 ++++++----------
 src/backup/chunk_store.rs      |  4 ++--
 src/backup/chunk_stream.rs     |  7 ++-----
 src/backup/datastore.rs        | 18 ++++++++++--------
 src/client/http_client.rs      | 10 +++++-----
 src/config/network/parser.rs   |  1 +
 src/tools/acl.rs               |  9 +++++++--
 src/tools/lru_cache.rs         |  5 +++++
 12 files changed, 57 insertions(+), 58 deletions(-)

-- 
2.20.1





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-25 10:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 16:23 [pbs-devel] [PATCH proxmox-backup 0/8] clippy fixes Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 1/8] clippy: add is_empty() when len() is implemented Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 2/8] clippy: fix Mutex with unused value Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 3/8] clippy: rewrite comparison chains Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 4/8] clippy: rewrite ifs with identical return values Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 5/8] apt: let api handle optional bool with default Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 6/8] rework GC traversal error handling Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 7/8] http-client: fix typoed ticket cache condition Fabian Grünbichler
2021-01-20 16:23 ` [pbs-devel] [PATCH proxmox-backup 8/8] http-client: further clippy cleanups Fabian Grünbichler
2021-01-25 10:52 ` [pbs-devel] applied series: [PATCH proxmox-backup 0/8] clippy fixes Wolfgang Bumiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal