Merge pull request #119 from CryZe/fix-no-std-signature

Fix `FontSystem::new_with_locale_and_db` Signature
This commit is contained in:
Jeremy Soller 2023-03-31 06:42:26 -06:00 committed by GitHub
commit 615dc51907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 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 {