Require Fallback implementations to be Send + Sync

This commit is contained in:
Jeremy Soller 2025-03-28 10:33:40 -06:00
parent b027bab538
commit 64fd3481f1
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -65,7 +65,7 @@ mod platform;
/// let db = fontdb::Database::new();
/// let font_system = FontSystem::new_with_locale_and_db_and_fallback(locale, db, MyFallback);
/// ```
pub trait Fallback {
pub trait Fallback: Send + Sync {
/// Fallbacks to use after any script specific fallbacks
fn common_fallback(&self) -> &[&'static str];