diff --git a/src/font/system/std.rs b/src/font/system/std.rs index e6ed61b..12924b1 100644 --- a/src/font/system/std.rs +++ b/src/font/system/std.rs @@ -48,11 +48,11 @@ impl FontSystem { ); } - Self::new_with_locale_and_db(&locale, db) + Self::new_with_locale_and_db(locale, db) } /// Create a new [`FontSystem`], manually specifying the current locale and font database. - pub fn new_with_locale_and_db(locale: &str, mut db: fontdb::Database) -> Self { + pub fn new_with_locale_and_db(locale: String, mut db: fontdb::Database) -> Self { { let now = std::time::Instant::now();