summaryrefslogtreecommitdiffstats
path: root/renderer
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 /renderer
parent1701ec815d3f25ea8097e806081e7a3ac9ba4d82 (diff)
downloadiced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.tar.gz
iced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.tar.bz2
iced-5fc49edc55a0e64c4c46ca55eddafe9d4e8232e1.zip
Make `compatible_window` mandatory in `Compositor`
Diffstat (limited to 'renderer')
-rw-r--r--renderer/src/compositor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/renderer/src/compositor.rs b/renderer/src/compositor.rs
index 0b56f101..f10ed048 100644
--- a/renderer/src/compositor.rs
+++ b/renderer/src/compositor.rs
@@ -24,7 +24,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
fn new<W: Window + Clone>(
settings: Self::Settings,
- compatible_window: Option<W>,
+ compatible_window: W,
) -> Result<Self, Error> {
let candidates =
Candidate::list_from_env().unwrap_or(Candidate::default_list());
@@ -228,7 +228,7 @@ impl Candidate {
fn build<Theme, W: Window>(
self,
settings: Settings,
- _compatible_window: Option<W>,
+ _compatible_window: W,
) -> Result<Compositor<Theme>, Error> {
match self {
Self::TinySkia => {