From: Dominik Csapak <d.csapak@proxmox.com>
To: Shannon Sterz <s.sterz@proxmox.com>, yew-devel@lists.proxmox.com
Subject: Re: [PATCH yew-comp 00/15] clippy clean up proxmox-yew-comp
Date: Mon, 9 Mar 2026 13:54:38 +0100 [thread overview]
Message-ID: <591b094a-7451-48ec-9683-d679d46b1705@proxmox.com> (raw)
In-Reply-To: <20260306112148.208189-1-s.sterz@proxmox.com>
most of them look fine to me IMO,
but I'm thinking maybe we should have (for the gui at least?) a custom
clippy config that removes some default lints, e.g. the
large_enum_variant and too_many_arguments lint
don' gain us much most of the time
(Msg enums are only sent every once in a while,
so performance impact is negligible here;
long argument lists only get ignored most of the time anyway)
also the commit:
fix various minor clippy lints has some in the list
that are not actually part of the commit?
(like again the 'too_many_arguments' one)
so before i go and apply this (at least partially)
we might want to look over the lints again to see
which one we can/should ignore here?
On 3/6/26 12:21 PM, Shannon Sterz wrote:
> these patches clean up all clippy warning in proxmox-yew-comp. see each
> patch for a description which lints are being cleaned up.
>
>
> Shannon Sterz (15):
> tree wide: fix clippy lint "useless_conversion"
> tree wide: fix clippy lint "new_without_default"
> tree wide: fix clippy lint "redundant_static_lifetimes"
> tree wide: fix clippy lint "unnecessary_lazy_evaluations"
> tree wide: fix clippy lint "unwrap_or_default"
> tree wide: fix clippy lint "clone_on_copy"
> tree wide: fix clippy lint "collapsible_else_if"
> tree wide: fix various minor clippy lints
> tree wide: fix clippy lint "manual_strip"
> lxc_property/qemu_property: fix clippy lint "match_like_matches_macro"
> firewall_property: fix clippy lint "redundant_guards"
> qemu_property: fix clippy lint "redundant_pattern_matching"
> qemu_hardware_pane/lxc_resources_panel: allow
> clippy::enum_variant_names
> tree wide: fix clippy lint "large_enum_variant"
> tree wide: allow clippy "too_many_arguments" warning selectively
>
> .../firewall_options_cluster_panel.rs | 6 +
> .../pve/firewall/firewall_rules_panel.rs | 4 +-
> src/configuration/pve/lxc_network_panel.rs | 15 ++-
> .../pve/lxc_resources_panel/desktop.rs | 4 +-
> .../pve/lxc_resources_panel/mobile.rs | 4 +-
> .../pve/lxc_resources_panel/mod.rs | 1 +
> .../reassign_volume_dialog.rs | 16 +--
> src/configuration/pve/move_disk_dialog.rs | 12 +-
> .../pve/qemu_hardware_panel/desktop.rs | 6 +-
> .../pve/qemu_hardware_panel/mobile.rs | 6 +-
> .../pve/qemu_hardware_panel/mod.rs | 1 +
> .../reassign_disk_dialog.rs | 14 +--
> src/editable_property.rs | 2 +-
> src/form/pve/boot_device_list.rs | 6 +-
> .../firewall_property/log_level_selector.rs | 6 +
> .../log_ratelimit_property.rs | 13 +-
> .../log_ratelimit_selector.rs | 12 +-
> src/form/pve/firewall_property/mod.rs | 6 +-
> src/form/pve/hotplug_feature_selector.rs | 18 +--
> src/form/pve/lxc_mount_options_selector.rs | 10 +-
> .../pve/lxc_property/lxc_cores_property.rs | 8 +-
> .../pve/lxc_property/lxc_features_property.rs | 27 ++--
> .../lxc_property/lxc_memory_swap_property.rs | 4 +-
> .../lxc_property/lxc_mount_point_property.rs | 99 +++++++--------
> .../lxc_property/lxc_nameserver_property.rs | 4 +-
> .../pve/lxc_property/lxc_network_property.rs | 36 +++---
> src/form/pve/mod.rs | 4 +-
> src/form/pve/pve_guest_selector.rs | 14 ++-
> src/form/pve/pve_network_selector.rs | 11 +-
> src/form/pve/pve_storage_content_selector.rs | 12 +-
> src/form/pve/pve_vlan_field.rs | 6 +
> src/form/pve/qemu_cache_type_selector.rs | 6 +
> src/form/pve/qemu_controller_selector.rs | 6 +
> src/form/pve/qemu_cpu_flags_list.rs | 22 ++--
> src/form/pve/qemu_disk_format_selector.rs | 11 +-
> .../pve/qemu_disk_size_format_selector.rs | 12 +-
> src/form/pve/qemu_display_type_selector.rs | 6 +
> src/form/pve/qemu_machine_version_selector.rs | 18 +--
> src/form/pve/qemu_ostype_selector.rs | 6 +
> src/form/pve/qemu_property/mod.rs | 2 +-
> .../qemu_property/qemu_amd_sev_property.rs | 18 +--
> .../pve/qemu_property/qemu_disk_property.rs | 119 +++++++++---------
> .../qemu_property/qemu_display_property.rs | 4 +-
> .../qemu_property/qemu_efidisk_property.rs | 28 +++--
> .../qemu_property/qemu_intel_tdx_property.rs | 12 +-
> .../pve/qemu_property/qemu_memory_property.rs | 17 ++-
> .../qemu_property/qemu_processor_property.rs | 4 +-
> .../pve/qemu_property/qemu_scsihw_property.rs | 4 +-
> .../qemu_property/qemu_smbios1_property.rs | 2 +-
> .../qemu_spice_enhancement_property.rs | 4 +-
> .../qemu_property/qemu_tpmstate_property.rs | 21 ++--
> src/layout/mobile_form.rs | 4 +-
> src/loadable_component.rs | 6 +
> src/log_view.rs | 2 +-
> src/pending_property_view/mod.rs | 6 +
> src/property_edit_dialog.rs | 4 +-
> src/property_view/mod.rs | 6 +-
> src/utils/task_descriptions.rs | 4 +-
> 58 files changed, 414 insertions(+), 327 deletions(-)
>
> --
> 2.47.3
>
>
>
>
>
next prev parent reply other threads:[~2026-03-09 12:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 11:21 Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 01/15] tree wide: fix clippy lint "useless_conversion" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 02/15] tree wide: fix clippy lint "new_without_default" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 03/15] tree wide: fix clippy lint "redundant_static_lifetimes" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 04/15] tree wide: fix clippy lint "unnecessary_lazy_evaluations" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 05/15] tree wide: fix clippy lint "unwrap_or_default" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 06/15] tree wide: fix clippy lint "clone_on_copy" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 07/15] tree wide: fix clippy lint "collapsible_else_if" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 08/15] tree wide: fix various minor clippy lints Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 09/15] tree wide: fix clippy lint "manual_strip" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 10/15] lxc_property/qemu_property: fix clippy lint "match_like_matches_macro" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 11/15] firewall_property: fix clippy lint "redundant_guards" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 12/15] qemu_property: fix clippy lint "redundant_pattern_matching" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 13/15] qemu_hardware_pane/lxc_resources_panel: allow clippy::enum_variant_names Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 14/15] tree wide: fix clippy lint "large_enum_variant" Shannon Sterz
2026-03-06 11:21 ` [PATCH yew-comp 15/15] tree wide: allow clippy "too_many_arguments" warning selectively Shannon Sterz
2026-03-09 12:54 ` Dominik Csapak [this message]
2026-03-09 13:13 ` [PATCH yew-comp 00/15] clippy clean up proxmox-yew-comp Shannon Sterz
2026-03-09 13:15 ` Dominik Csapak
2026-03-09 15:30 ` Superseded: " Shannon Sterz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=591b094a-7451-48ec-9683-d679d46b1705@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=s.sterz@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox