From df20db516a99c6ca8fbdaa02c51064f905adf5a5 Mon Sep 17 00:00:00 2001 From: Adanos020 Date: Wed, 3 Jul 2024 18:49:55 +0100 Subject: [PATCH] Fix examples --- examples/reject_windows.rs | 2 +- examples/simple.rs | 2 +- examples/tab_add.rs | 2 +- examples/tab_add_popup.rs | 2 +- examples/text_editor.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/reject_windows.rs b/examples/reject_windows.rs index 8e9177b9..1c71c154 100644 --- a/examples/reject_windows.rs +++ b/examples/reject_windows.rs @@ -9,7 +9,7 @@ fn main() -> eframe::Result<()> { eframe::run_native( "My egui App", options, - Box::new(|_cc| Box::::default()), + Box::new(|_cc| Ok(Box::::default())), ) } diff --git a/examples/simple.rs b/examples/simple.rs index 0d478f32..2a7a6d75 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -9,7 +9,7 @@ fn main() -> eframe::Result<()> { eframe::run_native( "My egui App", options, - Box::new(|_cc| Box::::default()), + Box::new(|_cc| Ok(Box::::default())), ) } diff --git a/examples/tab_add.rs b/examples/tab_add.rs index 76806cd0..19739f17 100644 --- a/examples/tab_add.rs +++ b/examples/tab_add.rs @@ -9,7 +9,7 @@ fn main() -> eframe::Result<()> { eframe::run_native( "My egui App", options, - Box::new(|_cc| Box::::default()), + Box::new(|_cc| Ok(Box::::default())), ) } diff --git a/examples/tab_add_popup.rs b/examples/tab_add_popup.rs index 9aa29848..a35a07f7 100644 --- a/examples/tab_add_popup.rs +++ b/examples/tab_add_popup.rs @@ -10,7 +10,7 @@ fn main() -> eframe::Result<()> { eframe::run_native( "My egui App", options, - Box::new(|_cc| Box::::default()), + Box::new(|_cc| Ok(Box::::default())), ) } diff --git a/examples/text_editor.rs b/examples/text_editor.rs index 7b2a2f31..f85157a3 100644 --- a/examples/text_editor.rs +++ b/examples/text_editor.rs @@ -13,7 +13,7 @@ fn main() -> eframe::Result<()> { eframe::run_native( "Text editor examples", options, - Box::new(|_cc| Box::::default()), + Box::new(|_cc| Ok(Box::::default())), ) }