diff --git a/plotters/src/style/font/ttf.rs b/plotters/src/style/font/ttf.rs index 3cd17778..57c02cf5 100644 --- a/plotters/src/style/font/ttf.rs +++ b/plotters/src/style/font/ttf.rs @@ -137,7 +137,7 @@ fn load_font_data(face: FontFamily, style: FontStyle) -> FontResult { .load() .map(FontExt::new) .map_err(|e| FontError::FontLoadError(Arc::new(e))) - })?; + })??; } drop(cache);