summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-08-26 01:34:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-08-26 01:34:42 +0200
commit8ed06dc356e0296f0b800d4d6b92998bd4444cc6 (patch)
tree27b80a5fea2dd0b1c04d9537443778761167da35
parente0eb19d4cd2002c449286e67abe9a88071cd4909 (diff)
downloadiced-8ed06dc356e0296f0b800d4d6b92998bd4444cc6.tar.gz
iced-8ed06dc356e0296f0b800d4d6b92998bd4444cc6.tar.bz2
iced-8ed06dc356e0296f0b800d4d6b92998bd4444cc6.zip
Fix `clippy` lints for Rust 1.72
Diffstat (limited to '')
-rw-r--r--runtime/src/user_interface.rs2
-rw-r--r--src/lib.rs1
-rw-r--r--widget/src/combo_box.rs2
3 files changed, 3 insertions, 2 deletions
diff --git a/runtime/src/user_interface.rs b/runtime/src/user_interface.rs
index 5e910eab..e529c004 100644
--- a/runtime/src/user_interface.rs
+++ b/runtime/src/user_interface.rs
@@ -291,7 +291,7 @@ where
let event_statuses = events
.iter()
.cloned()
- .zip(overlay_statuses.into_iter())
+ .zip(overlay_statuses)
.map(|(event, overlay_status)| {
if matches!(overlay_status, event::Status::Captured) {
return overlay_status;
diff --git a/src/lib.rs b/src/lib.rs
index ff87e245..36f48ba2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -268,6 +268,7 @@ pub mod touch {
pub use crate::core::touch::{Event, Finger};
}
+#[allow(hidden_glob_reexports)]
pub mod widget {
//! Use the built-in widgets or create your own.
pub use iced_widget::*;
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs
index 5e36ec57..690ef27c 100644
--- a/widget/src/combo_box.rs
+++ b/widget/src/combo_box.rs
@@ -735,7 +735,7 @@ where
options
.into_iter()
- .zip(option_matchers.into_iter())
+ .zip(option_matchers)
// Make sure each part of the query is found in the option
.filter_map(move |(option, matcher)| {
if query.iter().all(|part| matcher.as_ref().contains(part)) {