diff --git a/components/script/dom/gpucanvascontext.rs b/components/script/dom/gpucanvascontext.rs index 56f9732ca62..42848825adf 100644 --- a/components/script/dom/gpucanvascontext.rs +++ b/components/script/dom/gpucanvascontext.rs @@ -29,6 +29,7 @@ impl GPUCanvasContext { } impl GPUCanvasContextMethods for GPUCanvasContext { + /// fn Canvas(&self) -> UnionTypes::HTMLCanvasElementOrOffscreenCanvas { unimplemented!() } diff --git a/python/tidy/tests/speclink.rs b/python/tidy/tests/speclink.rs index 499953e7bda..b9b01ebaa46 100644 --- a/python/tidy/tests/speclink.rs +++ b/python/tidy/tests/speclink.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -impl SpecLinkMethods for SpecLink { +impl SpecLinkMethods for SpecLink { amacro!("Macros inside impls should trigger spec checks.") // Method declarations should trigger spec checks. diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py index 55bbba0513e..4494f975ca5 100644 --- a/python/tidy/tidy.py +++ b/python/tidy/tidy.py @@ -905,7 +905,7 @@ def check_spec(file_name, lines): brace_count = 0 in_impl = False - pattern = "impl {}Methods for {} {{".format(file_name, file_name) + pattern = "impl {}Methods for {} {{".format(file_name, file_name) for idx, line in enumerate(map(lambda line: line.decode("utf-8"), lines)): if "// check-tidy: no specs after this line" in line: