From 34a919b98075880b627378f793001eff7e7265bf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Mar 2025 12:42:42 -0700 Subject: [PATCH] [fontations] Clippy --- src/fontations/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index 6f5af50cf..334ec1ce3 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -751,7 +751,9 @@ fn _hb_fontations_font_funcs_get() -> *mut hb_font_funcs_t { } } -// A helper to attach these funcs to a hb_font_t +/// # Safety +/// +/// This function is unsafe because it connects with the HarfBuzz API. #[no_mangle] pub unsafe extern "C" fn hb_fontations_font_set_funcs(font: *mut hb_font_t) { let ffuncs = _hb_fontations_font_funcs_get();