Fix FontSystem::new_with_locale_and_db Signature

It turns out that the `no_std` version of
`FontSystem::new_with_locale_and_db` doesn't match the `std` version.
This fixes that.
This commit is contained in:
Christopher Serr 2023-03-29 22:29:09 +02:00
parent 521acb64e0
commit 71281a5d79
2 changed files with 6 additions and 7 deletions

View file

@ -28,11 +28,8 @@ impl FontSystem {
Self { locale, db }
}
pub fn new_with_locale_and_db(locale: &str, db: fontdb::Database) -> Self {
Self {
locale: locale.to_string(),
db,
}
pub fn new_with_locale_and_db(locale: String, db: fontdb::Database) -> Self {
Self { locale, db }
}
pub fn locale(&self) -> &str {