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:
parent
521acb64e0
commit
71281a5d79
2 changed files with 6 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue