Replace unwrap with expect in getting display for CSS loading
This commit is contained in:
parent
4d4b7eb1c7
commit
ce19ba9226
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue