From 61116ee6c411c1ed73c1e1020694087f727d9e58 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 8 Mar 2022 13:58:36 -0500 Subject: [PATCH] simplify this bit --- src/egui_app.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/egui_app.rs b/src/egui_app.rs index 53d2823..22bfbc2 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -57,9 +57,8 @@ lazy_static::lazy_static! { let mut file = file.unwrap(); let mut data: Vec = Vec::new(); file.read_to_end(&mut data).unwrap(); - let path = &file.header().path().unwrap(); - match (path).to_string_lossy().as_ref() { + match file.header().path().unwrap().to_string_lossy().as_ref() { "Hack-Regular.ttf" => { hack = Ok(FontData::from_owned(data)) },