From fa935e553a9ec37d39d2274432a00f1b465cef0f Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 26 Jun 2023 09:38:55 -0600 Subject: chore: Ensure copyright line is the first in the file (#19608) The copyright checker was allowing files with code above the copyright line in a few places, mainly as a result of IDEs ordering imports improperly. This makes the check more robust, and adds a whitelist of valid lines that may appear before the copyright line. --- ops/op2/dispatch_slow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/op2/dispatch_slow.rs b/ops/op2/dispatch_slow.rs index f10217a2d..478f872cd 100644 --- a/ops/op2/dispatch_slow.rs +++ b/ops/op2/dispatch_slow.rs @@ -1,4 +1,3 @@ -use super::MacroConfig; // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use super::generator_state::GeneratorState; use super::signature::Arg; @@ -6,6 +5,7 @@ use super::signature::NumericArg; use super::signature::ParsedSignature; use super::signature::RetVal; use super::signature::Special; +use super::MacroConfig; use super::V8MappingError; use proc_macro2::TokenStream; use quote::quote; -- cgit v1.2.3