Require Fallback implementations to be Send + Sync
This commit is contained in:
parent
b027bab538
commit
64fd3481f1
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ mod platform;
|
||||||
/// let db = fontdb::Database::new();
|
/// let db = fontdb::Database::new();
|
||||||
/// let font_system = FontSystem::new_with_locale_and_db_and_fallback(locale, db, MyFallback);
|
/// 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
|
/// Fallbacks to use after any script specific fallbacks
|
||||||
fn common_fallback(&self) -> &[&'static str];
|
fn common_fallback(&self) -> &[&'static str];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue