From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 63F961FF13E for ; Fri, 06 Mar 2026 12:21:31 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E24171FB7D; Fri, 6 Mar 2026 12:22:30 +0100 (CET) From: Shannon Sterz To: yew-devel@lists.proxmox.com Subject: [PATCH yew-comp 03/15] tree wide: fix clippy lint "redundant_static_lifetimes" Date: Fri, 6 Mar 2026 12:21:35 +0100 Message-ID: <20260306112148.208189-4-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306112148.208189-1-s.sterz@proxmox.com> References: <20260306112148.208189-1-s.sterz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772796082273 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.395 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_MSPIKE_H2 0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLACK 3 Contains an URL listed in the URIBL blacklist [rust-lang.github.io] Message-ID-Hash: EHGNK3L7LX5UIE2KFFQQTUJW7CRWLRP5 X-Message-ID-Hash: EHGNK3L7LX5UIE2KFFQQTUJW7CRWLRP5 X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: see: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes Signed-off-by: Shannon Sterz --- .../reassign_volume_dialog.rs | 4 +-- .../reassign_disk_dialog.rs | 2 +- .../log_ratelimit_property.rs | 12 ++++---- src/form/pve/firewall_property/mod.rs | 4 +-- .../pve/lxc_property/lxc_cores_property.rs | 8 ++--- .../pve/lxc_property/lxc_features_property.rs | 20 ++++++------- .../lxc_property/lxc_memory_swap_property.rs | 4 +-- .../lxc_property/lxc_mount_point_property.rs | 28 ++++++++--------- .../lxc_property/lxc_nameserver_property.rs | 4 +-- .../pve/lxc_property/lxc_network_property.rs | 30 +++++++++---------- .../qemu_property/qemu_amd_sev_property.rs | 16 +++++----- .../pve/qemu_property/qemu_disk_property.rs | 24 +++++++-------- .../qemu_property/qemu_efidisk_property.rs | 6 ++-- .../qemu_property/qemu_intel_tdx_property.rs | 10 +++---- .../qemu_property/qemu_processor_property.rs | 2 +- .../pve/qemu_property/qemu_scsihw_property.rs | 2 +- .../qemu_property/qemu_tpmstate_property.rs | 4 +-- 17 files changed, 90 insertions(+), 90 deletions(-) diff --git a/src/configuration/pve/lxc_resources_panel/reassign_volume_dialog.rs b/src/configuration/pve/lxc_resources_panel/reassign_volume_dialog.rs index c6ebaa3..8345b72 100644 --- a/src/configuration/pve/lxc_resources_panel/reassign_volume_dialog.rs +++ b/src/configuration/pve/lxc_resources_panel/reassign_volume_dialog.rs @@ -13,8 +13,8 @@ use pwt::prelude::*; use pwt::widget::InputPanel; use pwt::AsyncAbortGuard; -const TARGET_MOUNT_POINT_ID: &'static str = "_target_mount_point_id_"; -const TARGET_VMID_PN: &'static str = "target-vmid"; +const TARGET_MOUNT_POINT_ID: &str = "_target_mount_point_id_"; +const TARGET_VMID_PN: &str = "target-vmid"; use crate::configuration::guest_config_url; use crate::form::pve::{ diff --git a/src/configuration/pve/qemu_hardware_panel/reassign_disk_dialog.rs b/src/configuration/pve/qemu_hardware_panel/reassign_disk_dialog.rs index 1e82f3d..c0122eb 100644 --- a/src/configuration/pve/qemu_hardware_panel/reassign_disk_dialog.rs +++ b/src/configuration/pve/qemu_hardware_panel/reassign_disk_dialog.rs @@ -18,7 +18,7 @@ use crate::form::pve::{ use crate::http_get; use crate::{PropertyEditDialog, PropertyEditorState}; -const TARGET_VMID_PN: &'static str = "target-vmid"; +const TARGET_VMID_PN: &str = "target-vmid"; #[derive(PartialEq, Properties, Clone)] struct QemuReassignDiskPanel { diff --git a/src/form/pve/firewall_property/log_ratelimit_property.rs b/src/form/pve/firewall_property/log_ratelimit_property.rs index 2dbbaad..4b2b8c5 100644 --- a/src/form/pve/firewall_property/log_ratelimit_property.rs +++ b/src/form/pve/firewall_property/log_ratelimit_property.rs @@ -14,13 +14,13 @@ use crate::{EditableProperty, PropertyEditorState, SchemaValidation}; use super::LogRatelimitSelector; -const LOG_RATELIMIT_PN: &'static str = "log_ratelimit"; -const ENABLE_PN: &'static str = "_enable"; -const RATE_PN: &'static str = "_rate"; -const BURST_PN: &'static str = "_burst"; +const LOG_RATELIMIT_PN: &str = "log_ratelimit"; +const ENABLE_PN: &str = "_enable"; +const RATE_PN: &str = "_rate"; +const BURST_PN: &str = "_burst"; -const RATE_FIELD_NAME: &'static str = "_rate_"; -const UNIT_FIELD_NAME: &'static str = "_unit_"; +const RATE_FIELD_NAME: &str = "_rate_"; +const UNIT_FIELD_NAME: &str = "_unit_"; fn input_panel(mobile: bool) -> RenderPropertyInputPanelFn { RenderPropertyInputPanelFn::new(move |_state: PropertyEditorState| { diff --git a/src/form/pve/firewall_property/mod.rs b/src/form/pve/firewall_property/mod.rs index 39a87b1..5ab6de8 100644 --- a/src/form/pve/firewall_property/mod.rs +++ b/src/form/pve/firewall_property/mod.rs @@ -179,7 +179,7 @@ pub fn forward_policy_poperty(mobile: bool) -> EditableProperty { pub fn nf_conntrack_max_poperty(mobile: bool) -> EditableProperty { let title = tr!("Connection Tracking Max"); - const NAME: &'static str = "nf_conntrack_max"; + const NAME: &str = "nf_conntrack_max"; EditableProperty::new(NAME, title.clone()) .required(true) .placeholder(tr!("Default")) @@ -204,7 +204,7 @@ pub fn nf_conntrack_max_poperty(mobile: bool) -> EditableProperty { } pub fn nf_timeout_established_poperty(mobile: bool) -> EditableProperty { - const NAME: &'static str = "nf_conntrack_tcp_timeout_established"; + const NAME: &str = "nf_conntrack_tcp_timeout_established"; let title = tr!("TCP Timeout Established"); EditableProperty::new(NAME, title.clone()) .required(true) diff --git a/src/form/pve/lxc_property/lxc_cores_property.rs b/src/form/pve/lxc_property/lxc_cores_property.rs index 04bb6c2..76f4664 100644 --- a/src/form/pve/lxc_property/lxc_cores_property.rs +++ b/src/form/pve/lxc_property/lxc_cores_property.rs @@ -9,9 +9,9 @@ use crate::{ form::delete_empty_values, EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn, }; -const CORES_PN: &'static str = "cores"; -const CPU_LIMIT_PN: &'static str = "cpulimit"; -const CPU_UNITS_PN: &'static str = "cpuunits"; +const CORES_PN: &str = "cores"; +const CPU_LIMIT_PN: &str = "cpulimit"; +const CPU_UNITS_PN: &str = "cpuunits"; const CPU_UNITS_DEFAULT: u64 = 100; @@ -80,7 +80,7 @@ fn input_panel(mobile: bool) -> RenderPropertyInputPanelFn { } pub fn lxc_cores_property(mobile: bool) -> EditableProperty { - const KEYS: &[&'static str] = &[CORES_PN, CPU_UNITS_PN, CPU_LIMIT_PN]; + const KEYS: &[&str] = &[CORES_PN, CPU_UNITS_PN, CPU_LIMIT_PN]; let title = tr!("Cores"); EditableProperty::new(CORES_PN, title) .required(true) diff --git a/src/form/pve/lxc_property/lxc_features_property.rs b/src/form/pve/lxc_property/lxc_features_property.rs index dc23d0c..e969e26 100644 --- a/src/form/pve/lxc_property/lxc_features_property.rs +++ b/src/form/pve/lxc_property/lxc_features_property.rs @@ -16,18 +16,18 @@ use pwt::widget::InputPanel; use crate::{EditableProperty, PropertyEditorState}; -const NFS_CHECKBOX_NAME: &'static str = "_nfs_"; -const CIFS_CHECKBOX_NAME: &'static str = "_cifs_"; +const NFS_CHECKBOX_NAME: &str = "_nfs_"; +const CIFS_CHECKBOX_NAME: &str = "_cifs_"; -const FEATURES_PN: &'static str = "features"; -const MOUNT_PN: &'static str = "_mount"; -const NESTING_PN: &'static str = "_nesting"; -const KEYCTL_PN: &'static str = "_keyctl"; -const FUSE_PN: &'static str = "_fuse"; -const MKNOD_PN: &'static str = "_mknod"; +const FEATURES_PN: &str = "features"; +const MOUNT_PN: &str = "_mount"; +const NESTING_PN: &str = "_nesting"; +const KEYCTL_PN: &str = "_keyctl"; +const FUSE_PN: &str = "_fuse"; +const MKNOD_PN: &str = "_mknod"; -const FSTYPE_NFS: &'static str = "nfs"; -const FSTYPE_CIFS: &'static str = "cifs"; +const FSTYPE_NFS: &str = "nfs"; +const FSTYPE_CIFS: &str = "cifs"; #[derive(PartialEq, Properties)] struct LxcFeaturesPanel { diff --git a/src/form/pve/lxc_property/lxc_memory_swap_property.rs b/src/form/pve/lxc_property/lxc_memory_swap_property.rs index e6edcd6..d7368d2 100644 --- a/src/form/pve/lxc_property/lxc_memory_swap_property.rs +++ b/src/form/pve/lxc_property/lxc_memory_swap_property.rs @@ -7,8 +7,8 @@ use pwt::widget::{form::Number, InputPanel}; use crate::{EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn}; -const MEMORY_PN: &'static str = "memory"; -const SWAP_PN: &'static str = "swap"; +const MEMORY_PN: &str = "memory"; +const SWAP_PN: &str = "swap"; const DEFAULT_MEMORY: u64 = 512; fn renderer(_name: &str, value: &Value, _record: &Value) -> Html { diff --git a/src/form/pve/lxc_property/lxc_mount_point_property.rs b/src/form/pve/lxc_property/lxc_mount_point_property.rs index 4c31bb1..b6ed449 100644 --- a/src/form/pve/lxc_property/lxc_mount_point_property.rs +++ b/src/form/pve/lxc_property/lxc_mount_point_property.rs @@ -19,22 +19,22 @@ use crate::form::{ }; use crate::{EditableProperty, PropertyEditorState}; -const MOUNT_POINT_ID: &'static str = "_mount_point_id_"; -const NOREPLICATE_FIELD_NAME: &'static str = "_noreplicate_"; -const DISK_SIZE_FIELD_NAME: &'static str = "_disk_size_"; -const IMAGE_STORAGE: &'static str = "_storage_"; +const MOUNT_POINT_ID: &str = "_mount_point_id_"; +const NOREPLICATE_FIELD_NAME: &str = "_noreplicate_"; +const DISK_SIZE_FIELD_NAME: &str = "_disk_size_"; +const IMAGE_STORAGE: &str = "_storage_"; -const VOLUME_PN: &'static str = "_volume"; -const MOUNT_PATH_PN: &'static str = "_mp"; -const MOUNT_OPTIONS_PN: &'static str = "_mountoptions"; +const VOLUME_PN: &str = "_volume"; +const MOUNT_PATH_PN: &str = "_mp"; +const MOUNT_OPTIONS_PN: &str = "_mountoptions"; -const SHARED_PN: &'static str = "_shared"; -const READONLY_PN: &'static str = "_ro"; -const SIZE_PN: &'static str = "_size"; -const REPLICATE_PN: &'static str = "_replicate"; -const BACKUP_PN: &'static str = "_backup"; -const ACL_PN: &'static str = "_acl"; -const QUOTA_PN: &'static str = "_quota"; +const SHARED_PN: &str = "_shared"; +const READONLY_PN: &str = "_ro"; +const SIZE_PN: &str = "_size"; +const REPLICATE_PN: &str = "_replicate"; +const BACKUP_PN: &str = "_backup"; +const ACL_PN: &str = "_acl"; +const QUOTA_PN: &str = "_quota"; #[derive(Properties, Clone, PartialEq)] struct MountPointPanel { diff --git a/src/form/pve/lxc_property/lxc_nameserver_property.rs b/src/form/pve/lxc_property/lxc_nameserver_property.rs index e0cccf0..b41c246 100644 --- a/src/form/pve/lxc_property/lxc_nameserver_property.rs +++ b/src/form/pve/lxc_property/lxc_nameserver_property.rs @@ -8,8 +8,8 @@ use crate::{ form::delete_empty_values, EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn, }; -const SEARCDOMAIN_PN: &'static str = "searchdomain"; -const NAMESERVER_PN: &'static str = "nameserver"; +const SEARCDOMAIN_PN: &str = "searchdomain"; +const NAMESERVER_PN: &str = "nameserver"; fn renderer(_name: &str, value: &Value, _record: &Value) -> Html { match value { diff --git a/src/form/pve/lxc_property/lxc_network_property.rs b/src/form/pve/lxc_property/lxc_network_property.rs index 7582435..79dd675 100644 --- a/src/form/pve/lxc_property/lxc_network_property.rs +++ b/src/form/pve/lxc_property/lxc_network_property.rs @@ -18,23 +18,23 @@ use crate::form::{ }; use crate::{EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn, SchemaValidation}; -const NAME_PN: &'static str = "_name"; -const IP_PN: &'static str = "_ip"; -const IP6_PN: &'static str = "_ip6"; -const GW_PN: &'static str = "_gw"; -const GW6_PN: &'static str = "_gw6"; -const HWADDR_PN: &'static str = "_hwaddr"; -const BRIDGE_PN: &'static str = "_bridge"; -const TAG_PN: &'static str = "_tag"; -const RATE_PN: &'static str = "_rate"; -const MTU_PN: &'static str = "_mtu"; -const HOST_MANAGED_PN: &'static str = "_host-managed"; +const NAME_PN: &str = "_name"; +const IP_PN: &str = "_ip"; +const IP6_PN: &str = "_ip6"; +const GW_PN: &str = "_gw"; +const GW6_PN: &str = "_gw6"; +const HWADDR_PN: &str = "_hwaddr"; +const BRIDGE_PN: &str = "_bridge"; +const TAG_PN: &str = "_tag"; +const RATE_PN: &str = "_rate"; +const MTU_PN: &str = "_mtu"; +const HOST_MANAGED_PN: &str = "_host-managed"; -const FIREWALL_PN: &'static str = "_firewall"; -const DISCONNECT_PN: &'static str = "_link_down"; +const FIREWALL_PN: &str = "_firewall"; +const DISCONNECT_PN: &str = "_link_down"; -const IPV4_MODE_FIELD_NAME: &'static str = "_ipv4_mode_"; -const IPV6_MODE_FIELD_NAME: &'static str = "_ipv6_mode_"; +const IPV4_MODE_FIELD_NAME: &str = "_ipv4_mode_"; +const IPV6_MODE_FIELD_NAME: &str = "_ipv6_mode_"; fn get_schema(name: &str) -> &'static Schema { let object_schema = LxcConfigNet::API_SCHEMA.unwrap_object_schema(); diff --git a/src/form/pve/qemu_property/qemu_amd_sev_property.rs b/src/form/pve/qemu_property/qemu_amd_sev_property.rs index 9f1e467..9ec7683 100644 --- a/src/form/pve/qemu_property/qemu_amd_sev_property.rs +++ b/src/form/pve/qemu_property/qemu_amd_sev_property.rs @@ -11,15 +11,15 @@ use pwt::widget::{Container, FieldPosition, InputPanel}; use crate::form::{delete_empty_values, flatten_property_string, property_string_from_parts}; use crate::{EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn}; -const AMD_SEV_PN: &'static str = "amd-sev"; -const TYPE_PN: &'static str = "_type"; -const NO_DEBUG_PN: &'static str = "_no-debug"; -const NO_KEY_SHARING_PN: &'static str = "_no-key-sharing"; +const AMD_SEV_PN: &str = "amd-sev"; +const TYPE_PN: &str = "_type"; +const NO_DEBUG_PN: &str = "_no-debug"; +const NO_KEY_SHARING_PN: &str = "_no-key-sharing"; -const DEBUG_FIELD_NAME: &'static str = "_debug"; -const KEY_SHARING_FIELD_NAME: &'static str = "_key-sharing"; -const ALLOW_SMT_FIELD_NAME: &'static str = "_allow-smt"; -const KERNEL_HASHES_FIELD_NAME: &'static str = "_kernel-hashes"; +const DEBUG_FIELD_NAME: &str = "_debug"; +const KEY_SHARING_FIELD_NAME: &str = "_key-sharing"; +const ALLOW_SMT_FIELD_NAME: &str = "_allow-smt"; +const KERNEL_HASHES_FIELD_NAME: &str = "_kernel-hashes"; fn input_panel(mobile: bool) -> RenderPropertyInputPanelFn { RenderPropertyInputPanelFn::new(move |state: PropertyEditorState| { diff --git a/src/form/pve/qemu_property/qemu_disk_property.rs b/src/form/pve/qemu_property/qemu_disk_property.rs index 4c8a046..dc9ec47 100644 --- a/src/form/pve/qemu_property/qemu_disk_property.rs +++ b/src/form/pve/qemu_property/qemu_disk_property.rs @@ -15,19 +15,19 @@ use pve_api_types::{ }; use yew::virtual_dom::VComp; -const MEDIA_TYPE: &'static str = "_media_type_"; -const BUS_DEVICE: &'static str = "_device_"; -const IMAGE_STORAGE: &'static str = "_storage_"; -const NOREPLICATE_FIELD_NAME: &'static str = "_noreplicate_"; -const DISCARD_CHECKBOX_NAME: &'static str = "_discard_checkbox_"; +const MEDIA_TYPE: &str = "_media_type_"; +const BUS_DEVICE: &str = "_device_"; +const IMAGE_STORAGE: &str = "_storage_"; +const NOREPLICATE_FIELD_NAME: &str = "_noreplicate_"; +const DISCARD_CHECKBOX_NAME: &str = "_discard_checkbox_"; -const FILE_PN: &'static str = "_file"; -const DISCARD_PN: &'static str = "_discard"; -const READONLY_PN: &'static str = "_ro"; -const REPLICATE_PN: &'static str = "_replicate"; -const BACKUP_PN: &'static str = "_backup"; -const IOTHREAD_PN: &'static str = "_iothread"; -const SSD_PN: &'static str = "_ssd"; +const FILE_PN: &str = "_file"; +const DISCARD_PN: &str = "_discard"; +const READONLY_PN: &str = "_ro"; +const REPLICATE_PN: &str = "_replicate"; +const BACKUP_PN: &str = "_backup"; +const IOTHREAD_PN: &str = "_iothread"; +const SSD_PN: &str = "_ssd"; use crate::form::pve::pve_storage_content_selector::PveStorageContentSelector; use crate::form::pve::{ diff --git a/src/form/pve/qemu_property/qemu_efidisk_property.rs b/src/form/pve/qemu_property/qemu_efidisk_property.rs index 15b32e6..83e028e 100644 --- a/src/form/pve/qemu_property/qemu_efidisk_property.rs +++ b/src/form/pve/qemu_property/qemu_efidisk_property.rs @@ -12,10 +12,10 @@ use pve_api_types::{ }; use yew::virtual_dom::VComp; -const IMAGE_STORAGE: &'static str = "_storage_"; +const IMAGE_STORAGE: &str = "_storage_"; -const FILE_PN: &'static str = "_file"; -const EFITYPE_PN: &'static str = "_efitype"; +const FILE_PN: &str = "_file"; +const EFITYPE_PN: &str = "_efitype"; use crate::form::property_string_from_parts; use crate::form::pve::{PveStorageContentSelector, PveStorageSelector, QemuDiskFormatSelector}; diff --git a/src/form/pve/qemu_property/qemu_intel_tdx_property.rs b/src/form/pve/qemu_property/qemu_intel_tdx_property.rs index 9be3541..d8ca8f0 100644 --- a/src/form/pve/qemu_property/qemu_intel_tdx_property.rs +++ b/src/form/pve/qemu_property/qemu_intel_tdx_property.rs @@ -11,11 +11,11 @@ use pwt::widget::{Container, FieldPosition, InputPanel}; use crate::form::{delete_empty_values, flatten_property_string, property_string_from_parts}; use crate::{EditableProperty, PropertyEditorState, RenderPropertyInputPanelFn}; -const INTEL_TDX_PN: &'static str = "intel-tdx"; -const TYPE_PN: &'static str = "_type"; -const ATTESTATION_PN: &'static str = "_attestation"; -const VSOCK_CID_PN: &'static str = "_vsock-cid"; -const VSOCK_PORT_PN: &'static str = "_vsock-port"; +const INTEL_TDX_PN: &str = "intel-tdx"; +const TYPE_PN: &str = "_type"; +const ATTESTATION_PN: &str = "_attestation"; +const VSOCK_CID_PN: &str = "_vsock-cid"; +const VSOCK_PORT_PN: &str = "_vsock-port"; fn input_panel(mobile: bool) -> RenderPropertyInputPanelFn { RenderPropertyInputPanelFn::new(move |state: PropertyEditorState| { diff --git a/src/form/pve/qemu_property/qemu_processor_property.rs b/src/form/pve/qemu_property/qemu_processor_property.rs index b663b01..280879e 100644 --- a/src/form/pve/qemu_property/qemu_processor_property.rs +++ b/src/form/pve/qemu_property/qemu_processor_property.rs @@ -167,7 +167,7 @@ pub fn qemu_sockets_cores_property( user_is_root: bool, mobile: bool, ) -> EditableProperty { - const KEYS: &[&'static str] = &[ + const KEYS: &[&str] = &[ "sockets", "cores", "cpu", "vcpus", "cpuunits", "cpulimit", "affinity", "numa", ]; diff --git a/src/form/pve/qemu_property/qemu_scsihw_property.rs b/src/form/pve/qemu_property/qemu_scsihw_property.rs index 0414a4f..774db55 100644 --- a/src/form/pve/qemu_property/qemu_scsihw_property.rs +++ b/src/form/pve/qemu_property/qemu_scsihw_property.rs @@ -9,7 +9,7 @@ use crate::form::delete_empty_values; use crate::{EditableProperty, PropertyEditorState}; pub fn qemu_scsihw_property(mobile: bool) -> EditableProperty { - const NAME: &'static str = "scsihw"; + const NAME: &str = "scsihw"; let mut items = IndexMap::new(); items.extend([ ("lsi", "LSI 53C895A"), diff --git a/src/form/pve/qemu_property/qemu_tpmstate_property.rs b/src/form/pve/qemu_property/qemu_tpmstate_property.rs index b798a30..42264f6 100644 --- a/src/form/pve/qemu_property/qemu_tpmstate_property.rs +++ b/src/form/pve/qemu_property/qemu_tpmstate_property.rs @@ -7,8 +7,8 @@ use pwt::prelude::*; use pwt::widget::form::{Combobox, FormContextObserver}; use pwt::widget::InputPanel; -const IMAGE_STORAGE: &'static str = "_storage_"; -const FILE_PN: &'static str = "_file"; +const IMAGE_STORAGE: &str = "_storage_"; +const FILE_PN: &str = "_file"; use crate::form::property_string_from_parts; use crate::form::pve::{PveStorageContentSelector, PveStorageSelector}; -- 2.47.3