Skip to content

Commit

Permalink
Remove redundant crate::Theme in alias of Element
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 8, 2022
1 parent 4407385 commit 7105db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/element.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// A generic widget.
///
/// This is an alias of an `iced_native` element with a default `Renderer`.
pub type Element<'a, Message, Renderer = crate::Renderer<crate::Theme>> =
pub type Element<'a, Message, Renderer = crate::Renderer> =
crate::runtime::Element<'a, Message, Renderer>;
2 changes: 1 addition & 1 deletion src/pure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ pub use iced_pure::Widget;
pub use iced_pure::{Pure, State};

/// A generic, pure [`Widget`].
pub type Element<'a, Message, Renderer = crate::Renderer<crate::Theme>> =
pub type Element<'a, Message, Renderer = crate::Renderer> =
iced_pure::Element<'a, Message, Renderer>;

0 comments on commit 7105db9

Please sign in to comment.