From 6180c0a9154ed7860ffbc72476c43c92c2e1a593 Mon Sep 17 00:00:00 2001 From: abdelrahman Date: Tue, 10 Dec 2024 23:05:26 +0200 Subject: [PATCH] Fix compatibility with older Rust version (CI issue) - Downgraded dependencies to work with rust lower than 1.75. --- examples/turtlesim_rs/Cargo.toml | 4 ++-- examples/turtlesim_rs/src/turtlesim.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/turtlesim_rs/Cargo.toml b/examples/turtlesim_rs/Cargo.toml index ba162b09..3e9ebbed 100644 --- a/examples/turtlesim_rs/Cargo.toml +++ b/examples/turtlesim_rs/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -eframe = "0.29.1" -egui_extras = { version = "0.29.1", features = ["all_loaders"]} +eframe = "0.27.0" +egui_extras = { version = "0.27.0", features = ["all_loaders"]} tiny-skia = "0.11.4" rand = "0.8.5" termion = "1.5" diff --git a/examples/turtlesim_rs/src/turtlesim.rs b/examples/turtlesim_rs/src/turtlesim.rs index 8d0c1c4e..fb18edcc 100644 --- a/examples/turtlesim_rs/src/turtlesim.rs +++ b/examples/turtlesim_rs/src/turtlesim.rs @@ -21,7 +21,7 @@ fn main() { native_options, Box::new(|cc| { install_image_loaders(&cc.egui_ctx); - Ok(Box::new(MyEguiApp::new(cc))) + Box::new(MyEguiApp::new(cc)) }), ); }