Fix clippy lints for all crates and features

... and check those in CI as well!
This commit is contained in:
Héctor Ramón Jiménez 2022-07-09 18:42:41 +02:00
parent d53cc5498b
commit 2065a40f64
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
55 changed files with 237 additions and 232 deletions

View file

@ -396,7 +396,7 @@ where
&mut local_shell,
)
})
.unwrap_or_else(|| iced_native::event::Status::Ignored);
.unwrap_or(iced_native::event::Status::Ignored);
local_shell.revalidate_layout(|| shell.invalidate_layout());

View file

@ -11,7 +11,11 @@
clippy::useless_conversion
)]
#![forbid(unsafe_code)]
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
#![allow(
clippy::await_holding_refcell_ref,
clippy::inherent_to_string,
clippy::type_complexity
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub mod component;
pub mod responsive;

View file

@ -428,7 +428,7 @@ where
&mut local_shell,
)
})
.unwrap_or_else(|| iced_native::event::Status::Ignored);
.unwrap_or(iced_native::event::Status::Ignored);
local_shell.revalidate_layout(|| shell.invalidate_layout());

View file

@ -383,6 +383,6 @@ where
shell,
)
})
.unwrap_or_else(|| iced_native::event::Status::Ignored)
.unwrap_or(iced_native::event::Status::Ignored)
}
}

View file

@ -224,7 +224,7 @@ where
where
R: Deref<Target = Renderer>,
{
self.content.resolve(&mut self.state, renderer, f)
self.content.resolve(self.state, renderer, f)
}
}
@ -405,6 +405,6 @@ where
shell,
)
})
.unwrap_or_else(|| iced_native::event::Status::Ignored)
.unwrap_or(iced_native::event::Status::Ignored)
}
}