diff --git a/Cargo.toml b/Cargo.toml index 7971c150..637edf1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -233,7 +233,6 @@ winit = { git = "https://github.com/iced-rs/winit.git", rev = "11414b6aa45699f03 [workspace.lints.rust] rust_2018_idioms = { level = "deny", priority = -1 } -missing_debug_implementations = "deny" missing_docs = "deny" unsafe_code = "deny" unused_results = "deny" diff --git a/core/src/element.rs b/core/src/element.rs index 6a71296c..17731d0c 100644 --- a/core/src/element.rs +++ b/core/src/element.rs @@ -20,7 +20,6 @@ use std::borrow::Borrow; /// to turn it into an [`Element`]. /// /// [built-in widget]: crate::widget -#[allow(missing_debug_implementations)] pub struct Element<'a, Message, Theme, Renderer> { widget: Box + 'a>, } diff --git a/core/src/hasher.rs b/core/src/hasher.rs deleted file mode 100644 index 13180e41..00000000 --- a/core/src/hasher.rs +++ /dev/null @@ -1,14 +0,0 @@ -/// The hasher used to compare layouts. -#[allow(missing_debug_implementations)] // Doesn't really make sense to have debug on the hasher state anyways. -#[derive(Default)] -pub struct Hasher(rustc_hash::FxHasher); - -impl core::hash::Hasher for Hasher { - fn write(&mut self, bytes: &[u8]) { - self.0.write(bytes); - } - - fn finish(&self) -> u64 { - self.0.finish() - } -} diff --git a/core/src/overlay/element.rs b/core/src/overlay/element.rs index 561a18ab..e67a48bc 100644 --- a/core/src/overlay/element.rs +++ b/core/src/overlay/element.rs @@ -7,7 +7,6 @@ use crate::widget; use crate::{Clipboard, Event, Layout, Shell, Size}; /// A generic [`Overlay`]. -#[allow(missing_debug_implementations)] pub struct Element<'a, Message, Theme, Renderer> { overlay: Box + 'a>, } diff --git a/core/src/overlay/group.rs b/core/src/overlay/group.rs index cb734996..1a4ce672 100644 --- a/core/src/overlay/group.rs +++ b/core/src/overlay/group.rs @@ -7,7 +7,6 @@ use crate::{Clipboard, Event, Layout, Overlay, Shell, Size}; /// An [`Overlay`] container that displays multiple overlay [`overlay::Element`] /// children. -#[allow(missing_debug_implementations)] pub struct Group<'a, Message, Theme, Renderer> { children: Vec>, } diff --git a/core/src/overlay/nested.rs b/core/src/overlay/nested.rs index 25d94c91..2b90a900 100644 --- a/core/src/overlay/nested.rs +++ b/core/src/overlay/nested.rs @@ -7,7 +7,6 @@ use crate::widget; use crate::{Clipboard, Event, Layout, Shell, Size}; /// An overlay container that displays nested overlays -#[allow(missing_debug_implementations)] pub struct Nested<'a, Message, Theme, Renderer> { overlay: overlay::Element<'a, Message, Theme, Renderer>, } diff --git a/core/src/widget/operation.rs b/core/src/widget/operation.rs index 070b369c..9e7b0d34 100644 --- a/core/src/widget/operation.rs +++ b/core/src/widget/operation.rs @@ -256,7 +256,6 @@ where A: 'static, B: 'static, { - #[allow(missing_debug_implementations)] struct Map { operation: O, f: Arc B + Send + Sync>, diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs index c1f1e87e..72cb4319 100644 --- a/core/src/widget/text.rs +++ b/core/src/widget/text.rs @@ -55,7 +55,6 @@ pub use text::{Alignment, LineHeight, Shaping, Wrapping}; /// .into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Text<'a, Theme, Renderer> where Theme: Catalog, diff --git a/devtools/src/lib.rs b/devtools/src/lib.rs index c28bf31a..ca0f739d 100644 --- a/devtools/src/lib.rs +++ b/devtools/src/lib.rs @@ -116,7 +116,6 @@ where } /// The state of the devtools. -#[allow(missing_debug_implementations)] pub struct DevTools

where P: Program, diff --git a/examples/loading_spinners/src/circular.rs b/examples/loading_spinners/src/circular.rs index c5d6df6f..a05d4e0a 100644 --- a/examples/loading_spinners/src/circular.rs +++ b/examples/loading_spinners/src/circular.rs @@ -21,7 +21,6 @@ const MIN_ANGLE: Radians = Radians(PI / 8.0); const WRAP_ANGLE: Radians = Radians(2.0 * PI - PI / 4.0); const BASE_ROTATION_SPEED: u32 = u32::MAX / 80; -#[allow(missing_debug_implementations)] pub struct Circular<'a, Theme> where Theme: StyleSheet, diff --git a/examples/loading_spinners/src/linear.rs b/examples/loading_spinners/src/linear.rs index e9b4a20e..551d0111 100644 --- a/examples/loading_spinners/src/linear.rs +++ b/examples/loading_spinners/src/linear.rs @@ -12,7 +12,6 @@ use super::easing::{self, Easing}; use std::time::Duration; -#[allow(missing_debug_implementations)] pub struct Linear<'a, Theme> where Theme: StyleSheet, diff --git a/graphics/src/geometry/frame.rs b/graphics/src/geometry/frame.rs index 5372ec16..fb7aae82 100644 --- a/graphics/src/geometry/frame.rs +++ b/graphics/src/geometry/frame.rs @@ -3,7 +3,6 @@ use crate::core::{Point, Radians, Rectangle, Size, Vector}; use crate::geometry::{self, Fill, Image, Path, Stroke, Svg, Text}; /// The region of a surface that can be used to draw geometry. -#[allow(missing_debug_implementations)] pub struct Frame where Renderer: geometry::Renderer, diff --git a/graphics/src/geometry/path/builder.rs b/graphics/src/geometry/path/builder.rs index e814a3a7..2f389595 100644 --- a/graphics/src/geometry/path/builder.rs +++ b/graphics/src/geometry/path/builder.rs @@ -10,7 +10,6 @@ use lyon_path::math; /// A [`Path`] builder. /// /// Once a [`Path`] is built, it can no longer be mutated. -#[allow(missing_debug_implementations)] pub struct Builder { raw: builder::WithSvg, } diff --git a/graphics/src/text.rs b/graphics/src/text.rs index 9f932661..74ab6b84 100644 --- a/graphics/src/text.rs +++ b/graphics/src/text.rs @@ -134,7 +134,6 @@ pub fn font_system() -> &'static RwLock { } /// A set of system fonts. -#[allow(missing_debug_implementations)] pub struct FontSystem { raw: cosmic_text::FontSystem, loaded_fonts: HashSet, diff --git a/program/src/lib.rs b/program/src/lib.rs index aa51d959..800a1422 100644 --- a/program/src/lib.rs +++ b/program/src/lib.rs @@ -663,7 +663,6 @@ impl Renderer for T where } /// A particular instance of a running [`Program`]. -#[allow(missing_debug_implementations)] pub struct Instance { program: P, state: P::State, diff --git a/runtime/src/user_interface.rs b/runtime/src/user_interface.rs index 151a94a7..b63b4747 100644 --- a/runtime/src/user_interface.rs +++ b/runtime/src/user_interface.rs @@ -22,7 +22,6 @@ use crate::core::{ /// existing graphical application. /// /// [`integration`]: https://github.com/iced-rs/iced/tree/0.13/examples/integration -#[allow(missing_debug_implementations)] pub struct UserInterface<'a, Message, Theme, Renderer> { root: Element<'a, Message, Theme, Renderer>, base: layout::Node, diff --git a/runtime/src/window.rs b/runtime/src/window.rs index dde540b8..f2ed4e5e 100644 --- a/runtime/src/window.rs +++ b/runtime/src/window.rs @@ -15,7 +15,6 @@ pub use raw_window_handle; use raw_window_handle::WindowHandle; /// An operation to be performed on some window. -#[allow(missing_debug_implementations)] pub enum Action { /// Opens a new window with some [`Settings`]. Open(Id, Settings, oneshot::Sender), diff --git a/selector/src/target.rs b/selector/src/target.rs index 0ae0a50f..21c0c38e 100644 --- a/selector/src/target.rs +++ b/selector/src/target.rs @@ -5,7 +5,6 @@ use crate::core::{Rectangle, Vector}; use std::any::Any; #[derive(Clone)] -#[allow(missing_debug_implementations)] pub enum Target<'a> { Container { id: Option<&'a Id>, diff --git a/test/src/emulator.rs b/test/src/emulator.rs index ade88e23..4322343e 100644 --- a/test/src/emulator.rs +++ b/test/src/emulator.rs @@ -21,7 +21,6 @@ use crate::{Instruction, Selector}; use std::fmt; -#[allow(missing_debug_implementations)] pub struct Emulator { state: P::State, runtime: Runtime>, Event

>, @@ -35,14 +34,12 @@ pub struct Emulator { pending_tasks: usize, } -#[allow(missing_debug_implementations)] pub enum Event { Action(Action

), Failed(Instruction), Ready, } -#[allow(missing_debug_implementations)] pub enum Action { Runtime(runtime::Action), CountDown, diff --git a/test/src/simulator.rs b/test/src/simulator.rs index 68923dd7..009a2cc8 100644 --- a/test/src/simulator.rs +++ b/test/src/simulator.rs @@ -23,7 +23,6 @@ use std::path::{Path, PathBuf}; use std::sync::Arc; /// A user interface that can be interacted with and inspected programmatically. -#[allow(missing_debug_implementations)] pub struct Simulator< 'a, Message, diff --git a/tester/src/lib.rs b/tester/src/lib.rs index 5c2965cb..16450b4e 100644 --- a/tester/src/lib.rs +++ b/tester/src/lib.rs @@ -91,7 +91,6 @@ where } } -#[allow(missing_debug_implementations)] pub struct Tester { viewport: Size, mode: emulator::Mode, @@ -144,7 +143,6 @@ pub enum Message { Confirm, } -#[allow(missing_debug_implementations)] pub enum Tick { Tester(Message), Program(P::Message), diff --git a/tester/src/recorder.rs b/tester/src/recorder.rs index 6eae0f61..b44b40f1 100644 --- a/tester/src/recorder.rs +++ b/tester/src/recorder.rs @@ -19,7 +19,6 @@ pub fn recorder<'a, Message, Renderer>( Recorder::new(content) } -#[allow(missing_debug_implementations)] pub struct Recorder<'a, Message, Renderer> { content: Element<'a, Message, Theme, Renderer>, on_record: Option Message + 'a>>, diff --git a/tiny_skia/src/window/compositor.rs b/tiny_skia/src/window/compositor.rs index 02cace72..9ede982d 100644 --- a/tiny_skia/src/window/compositor.rs +++ b/tiny_skia/src/window/compositor.rs @@ -8,13 +8,11 @@ use crate::{Layer, Renderer, Settings}; use std::collections::VecDeque; use std::num::NonZeroU32; -#[allow(missing_debug_implementations)] pub struct Compositor { context: softbuffer::Context>, settings: Settings, } -#[allow(missing_debug_implementations)] pub struct Surface { window: softbuffer::Surface< Box, diff --git a/wgpu/src/engine.rs b/wgpu/src/engine.rs index 5125562c..574223a4 100644 --- a/wgpu/src/engine.rs +++ b/wgpu/src/engine.rs @@ -7,7 +7,6 @@ use crate::triangle; use std::sync::{Arc, RwLock}; #[derive(Clone)] -#[allow(missing_debug_implementations)] pub struct Engine { pub(crate) device: wgpu::Device, pub(crate) queue: wgpu::Queue, diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs index 18e26794..872d9fe1 100644 --- a/wgpu/src/geometry.rs +++ b/wgpu/src/geometry.rs @@ -92,7 +92,6 @@ impl Cached for Geometry { } /// A frame for drawing some geometry. -#[allow(missing_debug_implementations)] pub struct Frame { clip_bounds: Rectangle, buffers: BufferStack, diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index f49fa1db..c1977fb4 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -72,7 +72,6 @@ use crate::graphics::text::{Editor, Paragraph}; /// /// [`wgpu`]: https://github.com/gfx-rs/wgpu-rs /// [`iced`]: https://github.com/iced-rs/iced -#[allow(missing_debug_implementations)] pub struct Renderer { engine: Engine, diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index dd661e7e..cb2c02c7 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -197,7 +197,6 @@ pub trait Renderer: core::Renderer { /// Stores custom, user-provided types. #[derive(Default)] -#[allow(missing_debug_implementations)] pub struct Storage { pipelines: FxHashMap>, } diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs index 6fcc8e45..16efa092 100644 --- a/wgpu/src/text.rs +++ b/wgpu/src/text.rs @@ -269,7 +269,6 @@ impl Viewport { } #[derive(Clone)] -#[allow(missing_debug_implementations)] pub struct Pipeline { format: wgpu::TextureFormat, cache: cryoglyph::Cache, diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index c912ef1d..dab96531 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -8,7 +8,6 @@ use crate::settings::{self, Settings}; use crate::{Engine, Renderer}; /// A window graphics backend for iced powered by `wgpu`. -#[allow(missing_debug_implementations)] pub struct Compositor { instance: wgpu::Instance, adapter: wgpu::Adapter, diff --git a/widget/src/button.rs b/widget/src/button.rs index c0e16728..060762a2 100644 --- a/widget/src/button.rs +++ b/widget/src/button.rs @@ -68,7 +68,6 @@ use crate::core::{ /// button("I am disabled!").into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Button<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> where Renderer: crate::core::Renderer, diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs index 32e81538..80be7180 100644 --- a/widget/src/checkbox.rs +++ b/widget/src/checkbox.rs @@ -77,7 +77,6 @@ use crate::core::{ /// } /// ``` /// ![Checkbox drawn by `iced_wgpu`](https://github.com/iced-rs/iced/blob/7760618fb112074bc40b148944521f312152012a/docs/images/checkbox.png?raw=true) -#[allow(missing_debug_implementations)] pub struct Checkbox< 'a, Message, diff --git a/widget/src/column.rs b/widget/src/column.rs index ccf49e20..8e9745bc 100644 --- a/widget/src/column.rs +++ b/widget/src/column.rs @@ -32,7 +32,6 @@ use crate::core::{ /// ].into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Column<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> { spacing: f32, diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs index cda3c402..dd87c5a1 100644 --- a/widget/src/combo_box.rs +++ b/widget/src/combo_box.rs @@ -130,7 +130,6 @@ use std::fmt::Display; /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct ComboBox< 'a, T, diff --git a/widget/src/container.rs b/widget/src/container.rs index dfe26b21..3e054ea6 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -56,7 +56,6 @@ use crate::core::{ /// .into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Container< 'a, Message, diff --git a/widget/src/float.rs b/widget/src/float.rs index 1ff6ab10..c04adee6 100644 --- a/widget/src/float.rs +++ b/widget/src/float.rs @@ -13,7 +13,6 @@ use crate::core::{ }; /// A widget that can make its contents float over other widgets. -#[allow(missing_debug_implementations)] pub struct Float<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> where Theme: Catalog, diff --git a/widget/src/grid.rs b/widget/src/grid.rs index 4b1d9d56..b1d73050 100644 --- a/widget/src/grid.rs +++ b/widget/src/grid.rs @@ -10,7 +10,6 @@ use crate::core::{ }; /// A container that distributes its contents on a responsive grid. -#[allow(missing_debug_implementations)] pub struct Grid<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> { spacing: f32, columns: Constraint, diff --git a/widget/src/image.rs b/widget/src/image.rs index 3b29e4f5..18b7a3a3 100644 --- a/widget/src/image.rs +++ b/widget/src/image.rs @@ -54,7 +54,6 @@ pub fn viewer(handle: Handle) -> Viewer { /// } /// ``` /// -#[allow(missing_debug_implementations)] pub struct Image { handle: Handle, width: Length, diff --git a/widget/src/image/viewer.rs b/widget/src/image/viewer.rs index 205f84d5..29da5d6d 100644 --- a/widget/src/image/viewer.rs +++ b/widget/src/image/viewer.rs @@ -10,7 +10,6 @@ use crate::core::{ }; /// A frame that displays an image with the ability to zoom in/out and pan. -#[allow(missing_debug_implementations)] pub struct Viewer { padding: f32, width: Length, diff --git a/widget/src/keyed/column.rs b/widget/src/keyed/column.rs index 45525e4a..bdfa82e1 100644 --- a/widget/src/keyed/column.rs +++ b/widget/src/keyed/column.rs @@ -29,7 +29,6 @@ use crate::core::{ /// })).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Column< 'a, Key, diff --git a/widget/src/lazy.rs b/widget/src/lazy.rs index 106e239d..85d87f10 100644 --- a/widget/src/lazy.rs +++ b/widget/src/lazy.rs @@ -27,7 +27,6 @@ use std::rc::Rc; /// A widget that only rebuilds its contents when necessary. #[cfg(feature = "lazy")] -#[allow(missing_debug_implementations)] pub struct Lazy<'a, Message, Theme, Renderer, Dependency, View> { dependency: Dependency, view: Box View + 'a>, diff --git a/widget/src/mouse_area.rs b/widget/src/mouse_area.rs index f4a76d3b..8ca6f882 100644 --- a/widget/src/mouse_area.rs +++ b/widget/src/mouse_area.rs @@ -11,7 +11,6 @@ use crate::core::{ }; /// Emit messages on mouse events. -#[allow(missing_debug_implementations)] pub struct MouseArea< 'a, Message, diff --git a/widget/src/overlay/menu.rs b/widget/src/overlay/menu.rs index 6f8cc00b..fb2fe9e9 100644 --- a/widget/src/overlay/menu.rs +++ b/widget/src/overlay/menu.rs @@ -17,7 +17,6 @@ use crate::core::{Element, Shell, Widget}; use crate::scrollable::{self, Scrollable}; /// A list of selectable options. -#[allow(missing_debug_implementations)] pub struct Menu< 'a, 'b, diff --git a/widget/src/pane_grid.rs b/widget/src/pane_grid.rs index 5a3c1f70..67cb20d4 100644 --- a/widget/src/pane_grid.rs +++ b/widget/src/pane_grid.rs @@ -147,7 +147,6 @@ const THICKNESS_RATIO: f32 = 25.0; /// .into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct PaneGrid< 'a, Message, diff --git a/widget/src/pane_grid/content.rs b/widget/src/pane_grid/content.rs index 6592694b..b6f27203 100644 --- a/widget/src/pane_grid/content.rs +++ b/widget/src/pane_grid/content.rs @@ -13,7 +13,6 @@ use crate::pane_grid::{Draggable, TitleBar}; /// The content of a [`Pane`]. /// /// [`Pane`]: super::Pane -#[allow(missing_debug_implementations)] pub struct Content< 'a, Message, diff --git a/widget/src/pane_grid/controls.rs b/widget/src/pane_grid/controls.rs index 13b57acb..4ba32101 100644 --- a/widget/src/pane_grid/controls.rs +++ b/widget/src/pane_grid/controls.rs @@ -4,7 +4,6 @@ use crate::core::{self, Element}; /// The controls of a [`Pane`]. /// /// [`Pane`]: super::Pane -#[allow(missing_debug_implementations)] pub struct Controls< 'a, Message, diff --git a/widget/src/pane_grid/title_bar.rs b/widget/src/pane_grid/title_bar.rs index 7d15bf80..14a15c5f 100644 --- a/widget/src/pane_grid/title_bar.rs +++ b/widget/src/pane_grid/title_bar.rs @@ -13,7 +13,6 @@ use crate::pane_grid::controls::Controls; /// The title bar of a [`Pane`]. /// /// [`Pane`]: super::Pane -#[allow(missing_debug_implementations)] pub struct TitleBar< 'a, Message, diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs index 86dbdaf6..06e938ec 100644 --- a/widget/src/pick_list.rs +++ b/widget/src/pick_list.rs @@ -142,7 +142,6 @@ use std::f32; /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct PickList< 'a, T, diff --git a/widget/src/pin.rs b/widget/src/pin.rs index 04ed0324..77df188e 100644 --- a/widget/src/pin.rs +++ b/widget/src/pin.rs @@ -52,7 +52,6 @@ use crate::core::{ /// .into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Pin<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> where Renderer: core::Renderer, diff --git a/widget/src/progress_bar.rs b/widget/src/progress_bar.rs index d364f5df..25973027 100644 --- a/widget/src/progress_bar.rs +++ b/widget/src/progress_bar.rs @@ -52,7 +52,6 @@ use std::ops::RangeInclusive; /// progress_bar(0.0..=100.0, state.progress).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct ProgressBar<'a, Theme = crate::Theme> where Theme: Catalog, diff --git a/widget/src/qr_code.rs b/widget/src/qr_code.rs index e8a278fd..6995cc9f 100644 --- a/widget/src/qr_code.rs +++ b/widget/src/qr_code.rs @@ -60,7 +60,6 @@ const QUIET_ZONE: usize = 2; /// qr_code(&state.data).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct QRCode<'a, Theme = crate::Theme> where Theme: Catalog, diff --git a/widget/src/radio.rs b/widget/src/radio.rs index 3bb2e806..17d0426a 100644 --- a/widget/src/radio.rs +++ b/widget/src/radio.rs @@ -129,7 +129,6 @@ use crate::core::{ /// column![a, b, c, all].into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Radio<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> where Theme: Catalog, diff --git a/widget/src/responsive.rs b/widget/src/responsive.rs index 814f8909..06757fbd 100644 --- a/widget/src/responsive.rs +++ b/widget/src/responsive.rs @@ -14,7 +14,6 @@ use crate::space_x; /// /// A [`Responsive`] widget will always try to fill all the available space of /// its parent. -#[allow(missing_debug_implementations)] pub struct Responsive< 'a, Message, diff --git a/widget/src/row.rs b/widget/src/row.rs index 19c6666a..6dabc926 100644 --- a/widget/src/row.rs +++ b/widget/src/row.rs @@ -32,7 +32,6 @@ use crate::core::{ /// ].into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Row<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> { spacing: f32, padding: Padding, @@ -361,7 +360,6 @@ where /// obtain a [`Row`] that wraps its contents. /// /// The original alignment of the [`Row`] is preserved per row wrapped. -#[allow(missing_debug_implementations)] pub struct Wrapping< 'a, Message, diff --git a/widget/src/rule.rs b/widget/src/rule.rs index b9cee136..5ba2a6f0 100644 --- a/widget/src/rule.rs +++ b/widget/src/rule.rs @@ -44,7 +44,6 @@ use crate::core::{ /// rule(2).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Rule<'a, Theme = crate::Theme> where Theme: Catalog, diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 321aeb25..2535ecb8 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -62,7 +62,6 @@ pub use operation::scrollable::{AbsoluteOffset, RelativeOffset}; /// ]).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Scrollable< 'a, Message, diff --git a/widget/src/sensor.rs b/widget/src/sensor.rs index f18a1f1a..ff8a8f12 100644 --- a/widget/src/sensor.rs +++ b/widget/src/sensor.rs @@ -15,7 +15,6 @@ use crate::core::{ /// A widget that can generate messages when its content pops in and out of view. /// /// It can even notify you with anticipation at a given distance! -#[allow(missing_debug_implementations)] pub struct Sensor< 'a, Key, diff --git a/widget/src/shader.rs b/widget/src/shader.rs index cf165e59..7ce06964 100644 --- a/widget/src/shader.rs +++ b/widget/src/shader.rs @@ -22,7 +22,6 @@ pub use primitive::{Primitive, Storage}; /// /// Must be initialized with a [`Program`], which describes the internal widget state & how /// its [`Program::Primitive`]s are drawn. -#[allow(missing_debug_implementations)] pub struct Shader> { width: Length, height: Length, diff --git a/widget/src/slider.rs b/widget/src/slider.rs index db6bc175..2bace845 100644 --- a/widget/src/slider.rs +++ b/widget/src/slider.rs @@ -80,7 +80,6 @@ use std::ops::RangeInclusive; /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Slider<'a, T, Message, Theme = crate::Theme> where Theme: Catalog, diff --git a/widget/src/stack.rs b/widget/src/stack.rs index 5b6c8fab..6cfe0311 100644 --- a/widget/src/stack.rs +++ b/widget/src/stack.rs @@ -17,7 +17,6 @@ use crate::core::{ /// /// Keep in mind that too much layering will normally produce bad UX as well as /// introduce certain rendering overhead. Use this widget sparingly! -#[allow(missing_debug_implementations)] pub struct Stack<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> { width: Length, diff --git a/widget/src/svg.rs b/widget/src/svg.rs index ab69b2dc..dabe499f 100644 --- a/widget/src/svg.rs +++ b/widget/src/svg.rs @@ -51,7 +51,6 @@ pub use crate::core::svg::Handle; /// svg("tiger.svg").into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Svg<'a, Theme = crate::Theme> where Theme: Catalog, diff --git a/widget/src/table.rs b/widget/src/table.rs index 06b47124..44faa86d 100644 --- a/widget/src/table.rs +++ b/widget/src/table.rs @@ -49,7 +49,6 @@ where } /// A grid-like visual representation of data distributed in columns and rows. -#[allow(missing_debug_implementations)] pub struct Table<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> where Theme: Catalog, @@ -630,7 +629,6 @@ where } /// A vertical visualization of some data with a header. -#[allow(missing_debug_implementations)] pub struct Column< 'a, 'b, diff --git a/widget/src/text/rich.rs b/widget/src/text/rich.rs index e11f406b..648ffe82 100644 --- a/widget/src/text/rich.rs +++ b/widget/src/text/rich.rs @@ -13,7 +13,6 @@ use crate::core::{ }; /// A bunch of [`Rich`] text. -#[allow(missing_debug_implementations)] pub struct Rich< 'a, Link, diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 33666935..a8e2676b 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -93,7 +93,6 @@ pub use text::editor::{Action, Edit, Line, LineEnding, Motion}; /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct TextEditor< 'a, Highlighter, diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs index de47b145..432ff9a5 100644 --- a/widget/src/text_input.rs +++ b/widget/src/text_input.rs @@ -94,7 +94,6 @@ use crate::core::{ /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct TextInput< 'a, Message, diff --git a/widget/src/themer.rs b/widget/src/themer.rs index 67b6c65b..ccc03484 100644 --- a/widget/src/themer.rs +++ b/widget/src/themer.rs @@ -15,7 +15,6 @@ use crate::core::{ /// /// This widget can be useful to leverage multiple `Theme` /// types in an application. -#[allow(missing_debug_implementations)] pub struct Themer<'a, Message, Theme, Renderer = crate::Renderer> where Renderer: crate::core::Renderer, diff --git a/widget/src/toggler.rs b/widget/src/toggler.rs index 0ad2d22c..7910c210 100644 --- a/widget/src/toggler.rs +++ b/widget/src/toggler.rs @@ -76,7 +76,6 @@ use crate::core::{ /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Toggler< 'a, Message, diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs index 3f81270f..9333e1e1 100644 --- a/widget/src/tooltip.rs +++ b/widget/src/tooltip.rs @@ -56,7 +56,6 @@ use crate::core::{ /// ).into() /// } /// ``` -#[allow(missing_debug_implementations)] pub struct Tooltip< 'a, Message, diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs index 8e8ca1c0..35e0217e 100644 --- a/widget/src/vertical_slider.rs +++ b/widget/src/vertical_slider.rs @@ -84,7 +84,6 @@ use crate::core::{ /// } /// } /// ``` -#[allow(missing_debug_implementations)] pub struct VerticalSlider<'a, T, Message, Theme = crate::Theme> where Theme: Catalog, diff --git a/winit/src/clipboard.rs b/winit/src/clipboard.rs index d54a1fe0..b1463fdc 100644 --- a/winit/src/clipboard.rs +++ b/winit/src/clipboard.rs @@ -6,7 +6,6 @@ use winit::window::{Window, WindowId}; /// A buffer for short-term storage and transfer within and between /// applications. -#[allow(missing_debug_implementations)] pub struct Clipboard { state: State, } diff --git a/winit/src/window.rs b/winit/src/window.rs index 419c50e1..a1e8c8b3 100644 --- a/winit/src/window.rs +++ b/winit/src/window.rs @@ -24,7 +24,6 @@ use winit::monitor::MonitorHandle; use std::collections::BTreeMap; use std::sync::Arc; -#[allow(missing_debug_implementations)] pub struct WindowManager where P: Program, @@ -157,7 +156,6 @@ where } } -#[allow(missing_debug_implementations)] pub struct Window where P: Program,