diff --git a/deny.toml b/deny.toml index 5643982..60ede87 100644 --- a/deny.toml +++ b/deny.toml @@ -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 diff --git a/examples/editor-libcosmic/src/text_box.rs b/examples/editor-libcosmic/src/text_box.rs index 58ceb2e..e97a6ad 100644 --- a/examples/editor-libcosmic/src/text_box.rs +++ b/examples/editor-libcosmic/src/text_box.rs @@ -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}, }; diff --git a/src/font/system/no_std.rs b/src/font/system/no_std.rs index e4078b1..f981061 100644 --- a/src/font/system/no_std.rs +++ b/src/font/system/no_std.rs @@ -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 {