From ce19ba922614f78473321fe74ff9d79d9d8678c9 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Wed, 21 Jan 2026 13:31:42 +0100 Subject: [PATCH] Replace unwrap with expect in getting display for CSS loading --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f0bd82c..b9ca37a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ fn include_app_css() { // to relay color scheme changes to it. let provider = CssProvider::new(); - let display = Display::default().unwrap(); + let display = Display::default().expect("getting the default GDK4 display should never fail"); provider.load_from_string(include_str!("application.css")); style_context_add_provider_for_display(&display, &provider, STYLE_PROVIDER_PRIORITY_APPLICATION);