Fix lints for Rust 1.80
This commit is contained in:
parent
f18f08bd61
commit
555ee3e9c6
8 changed files with 15 additions and 15 deletions
|
|
@ -183,7 +183,7 @@ window_clipboard = "0.4.1"
|
|||
winit = { git = "https://github.com/iced-rs/winit.git", rev = "254d6b3420ce4e674f516f7a2bd440665e05484d" }
|
||||
|
||||
[workspace.lints.rust]
|
||||
rust_2018_idioms = "forbid"
|
||||
rust_2018_idioms = { level = "forbid", priority = -1 }
|
||||
missing_debug_implementations = "deny"
|
||||
missing_docs = "deny"
|
||||
unsafe_code = "deny"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ where
|
|||
/// * the computed [`Layout`] of the [`Overlay`]
|
||||
/// * the current cursor position
|
||||
/// * a mutable `Message` list, allowing the [`Overlay`] to produce
|
||||
/// new messages based on user interaction.
|
||||
/// new messages based on user interaction.
|
||||
/// * the `Renderer`
|
||||
/// * a [`Clipboard`], if available
|
||||
///
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ use crate::{Clipboard, Length, Rectangle, Shell, Size, Vector};
|
|||
/// widget:
|
||||
///
|
||||
/// - [`bezier_tool`], a Paint-like tool for drawing Bézier curves using
|
||||
/// [`lyon`].
|
||||
/// [`lyon`].
|
||||
/// - [`custom_widget`], a demonstration of how to build a custom widget that
|
||||
/// draws a circle.
|
||||
/// draws a circle.
|
||||
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
|
||||
/// `Mesh2D` primitive in [`iced_wgpu`].
|
||||
/// `Mesh2D` primitive in [`iced_wgpu`].
|
||||
///
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.12/examples/bezier_tool
|
||||
|
|
|
|||
|
|
@ -313,9 +313,9 @@ impl<T> std::fmt::Debug for Subscription<T> {
|
|||
/// The repository has a couple of [examples] that use a custom [`Recipe`]:
|
||||
///
|
||||
/// - [`download_progress`], a basic application that asynchronously downloads
|
||||
/// a dummy file of 100 MB and tracks the download progress.
|
||||
/// a dummy file of 100 MB and tracks the download progress.
|
||||
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
|
||||
/// to listen to time.
|
||||
/// to listen to time.
|
||||
///
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.12/examples/download_progress
|
||||
|
|
|
|||
|
|
@ -42,10 +42,10 @@ impl Tracker {
|
|||
/// method:
|
||||
///
|
||||
/// - If the provided [`Subscription`] contains a new [`Recipe`] that is
|
||||
/// currently not being run, it will spawn a new stream and keep it alive.
|
||||
/// currently not being run, it will spawn a new stream and keep it alive.
|
||||
/// - On the other hand, if a [`Recipe`] is currently in execution and the
|
||||
/// provided [`Subscription`] does not contain it anymore, then the
|
||||
/// [`Tracker`] will close and drop the relevant stream.
|
||||
/// provided [`Subscription`] does not contain it anymore, then the
|
||||
/// [`Tracker`] will close and drop the relevant stream.
|
||||
///
|
||||
/// It returns a list of futures that need to be spawned to materialize
|
||||
/// the [`Tracker`] changes.
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ where
|
|||
/// * the label of the [`Radio`] button
|
||||
/// * the current selected value
|
||||
/// * a function that will be called when the [`Radio`] is selected. It
|
||||
/// receives the value of the radio and must produce a `Message`.
|
||||
/// receives the value of the radio and must produce a `Message`.
|
||||
pub fn new<F, V>(
|
||||
label: impl Into<String>,
|
||||
value: V,
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ where
|
|||
/// * an inclusive range of possible values
|
||||
/// * the current value of the [`Slider`]
|
||||
/// * a function that will be called when the [`Slider`] is dragged.
|
||||
/// It receives the new value of the [`Slider`] and must produce a
|
||||
/// `Message`.
|
||||
/// It receives the new value of the [`Slider`] and must produce a
|
||||
/// `Message`.
|
||||
pub fn new<F>(range: RangeInclusive<T>, value: T, on_change: F) -> Self
|
||||
where
|
||||
F: 'a + Fn(T) -> Message,
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ where
|
|||
/// * an inclusive range of possible values
|
||||
/// * the current value of the [`VerticalSlider`]
|
||||
/// * a function that will be called when the [`VerticalSlider`] is dragged.
|
||||
/// It receives the new value of the [`VerticalSlider`] and must produce a
|
||||
/// `Message`.
|
||||
/// It receives the new value of the [`VerticalSlider`] and must produce a
|
||||
/// `Message`.
|
||||
pub fn new<F>(range: RangeInclusive<T>, value: T, on_change: F) -> Self
|
||||
where
|
||||
F: 'a + Fn(T) -> Message,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue