summaryrefslogtreecommitdiffstats
path: root/winit/src/multi_window/state.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 20:11:32 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 20:11:32 +0100
commit833538ee7f3a60a839304762dfc29b0881d19094 (patch)
tree7afbc69659c95f9cbec58c938f1939cca3290b04 /winit/src/multi_window/state.rs
parent44f002f64a9d53040f09affe69bd92675e302e16 (diff)
downloadiced-833538ee7f3a60a839304762dfc29b0881d19094.tar.gz
iced-833538ee7f3a60a839304762dfc29b0881d19094.tar.bz2
iced-833538ee7f3a60a839304762dfc29b0881d19094.zip
Leverage `DefaultStyle` traits instead of `Default`
Diffstat (limited to 'winit/src/multi_window/state.rs')
-rw-r--r--winit/src/multi_window/state.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/winit/src/multi_window/state.rs b/winit/src/multi_window/state.rs
index 8a332176..dfd8e696 100644
--- a/winit/src/multi_window/state.rs
+++ b/winit/src/multi_window/state.rs
@@ -11,7 +11,7 @@ use winit::window::Window;
/// The state of a multi-windowed [`Application`].
pub struct State<A: Application>
where
- multi_window::Style<A::Theme>: Default,
+ A::Theme: multi_window::DefaultStyle,
{
title: String,
scale_factor: f64,
@@ -25,7 +25,7 @@ where
impl<A: Application> Debug for State<A>
where
- multi_window::Style<A::Theme>: Default,
+ A::Theme: multi_window::DefaultStyle,
{
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.debug_struct("multi_window::State")
@@ -41,7 +41,7 @@ where
impl<A: Application> State<A>
where
- multi_window::Style<A::Theme>: Default,
+ A::Theme: multi_window::DefaultStyle,
{
/// Creates a new [`State`] for the provided [`Application`]'s `window`.
pub fn new(