diff --git a/Cargo.toml b/Cargo.toml index 34e4bfd..24854fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,5 +73,8 @@ shadow_unrelated = "warn" struct_field_names = "allow" # annoying module_name_repetitions = "allow" # annoying +disallowed_types = "deny" +disallowed_methods = "deny" + allow_attributes_without_reason = "warn" pedantic = { level = "warn", priority = -1 } diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..bb4c7e7 --- /dev/null +++ b/clippy.toml @@ -0,0 +1,7 @@ +disallowed-types = [ + { path = "iced::widget::Text", reason = "with some fonts text renders as squares without advanced shaping (see #523), instead use [`crate::gui::widgets::text`]" }, +] + +disallowed-methods= [ + { path = "iced::widget::text", reason = "with some fonts text renders as squares without advanced shaping (see #523), instead use [`crate::gui::widgets::text`]" }, +]