summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:06:30 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:06:30 +0100
commit5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1 (patch)
treedef282b187be48e4b61cfd55cbe243a3dd1191f8 /graphics
parent1701ec815d3f25ea8097e806081e7a3ac9ba4d82 (diff)
downloadiced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.tar.gz
iced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.tar.bz2
iced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.zip
Make `compatible_window` mandatory in `Compositor`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/compositor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs
index e6b9030b..0188f4d8 100644
--- a/graphics/src/compositor.rs
+++ b/graphics/src/compositor.rs
@@ -22,7 +22,7 @@ pub trait Compositor: Sized {
/// Creates a new [`Compositor`].
fn new<W: Window + Clone>(
settings: Self::Settings,
- compatible_window: Option<W>,
+ compatible_window: W,
) -> Result<Self, Error>;
/// Creates a [`Self::Renderer`] for the [`Compositor`].