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

@ -243,6 +243,9 @@ deny = [
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
# TODO: We allow syn 1.0 during the transition to syn 2.0. Remove this when
# syn is not in the dependency tree anymore.
{ name = "syn", version = "1" }
#{ name = "ansi_term", version = "=0.11.0" },
]
# Similarly to `skip` allows you to skip certain crates during duplicate

View file

@ -10,7 +10,7 @@ use cosmic::{
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
renderer,
widget::{self, tree, Widget},
Padding, {Color, Element, Length, Point, Rectangle, Shell, Size},
Color, Element, Length, Padding, Point, Rectangle, Shell, Size,
},
theme::{Theme, ThemeType},
};

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 {