Fix clippy lints for Rust 1.72
This commit is contained in:
parent
e0eb19d4cd
commit
8ed06dc356
3 changed files with 3 additions and 2 deletions
|
|
@ -291,7 +291,7 @@ where
|
||||||
let event_statuses = events
|
let event_statuses = events
|
||||||
.iter()
|
.iter()
|
||||||
.cloned()
|
.cloned()
|
||||||
.zip(overlay_statuses.into_iter())
|
.zip(overlay_statuses)
|
||||||
.map(|(event, overlay_status)| {
|
.map(|(event, overlay_status)| {
|
||||||
if matches!(overlay_status, event::Status::Captured) {
|
if matches!(overlay_status, event::Status::Captured) {
|
||||||
return overlay_status;
|
return overlay_status;
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,7 @@ pub mod touch {
|
||||||
pub use crate::core::touch::{Event, Finger};
|
pub use crate::core::touch::{Event, Finger};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(hidden_glob_reexports)]
|
||||||
pub mod widget {
|
pub mod widget {
|
||||||
//! Use the built-in widgets or create your own.
|
//! Use the built-in widgets or create your own.
|
||||||
pub use iced_widget::*;
|
pub use iced_widget::*;
|
||||||
|
|
|
||||||
|
|
@ -735,7 +735,7 @@ where
|
||||||
|
|
||||||
options
|
options
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(option_matchers.into_iter())
|
.zip(option_matchers)
|
||||||
// Make sure each part of the query is found in the option
|
// Make sure each part of the query is found in the option
|
||||||
.filter_map(move |(option, matcher)| {
|
.filter_map(move |(option, matcher)| {
|
||||||
if query.iter().all(|part| matcher.as_ref().contains(part)) {
|
if query.iter().all(|part| matcher.as_ref().contains(part)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue