Merge pull request #119 from CryZe/fix-no-std-signature
Fix `FontSystem::new_with_locale_and_db` Signature
This commit is contained in:
commit
615dc51907
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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