From 29d3729ac81ec4f8b6e98a62a6ad8280e4f3d5f3 Mon Sep 17 00:00:00 2001 From: dAxpeDDa Date: Tue, 6 Jun 2023 22:58:03 +0200 Subject: [PATCH] Disallow more methods --- clippy.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clippy.toml b/clippy.toml index 5c0bb339..70fbe707 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,3 +1,7 @@ disallowed-methods = [ { path = "web_sys::window", reason = "is not available in every context" }, + { path = "web_sys::HtmlCanvasElement::width", reason = "Winit shouldn't touch the internal canvas size" }, + { path = "web_sys::HtmlCanvasElement::height", reason = "Winit shouldn't touch the internal canvas size" }, + { path = "web_sys::HtmlCanvasElement::set_width", reason = "Winit shouldn't touch the internal canvas size" }, + { path = "web_sys::HtmlCanvasElement::set_height", reason = "Winit shouldn't touch the internal canvas size" }, ]