diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-26 09:38:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 09:38:55 -0600 |
commit | fa935e553a9ec37d39d2274432a00f1b465cef0f (patch) | |
tree | d5024190474b6ee596977a6dde81335fb491d351 /serde_v8/magic | |
parent | 801b9ec62d94f201e67d053ee90dae0b70e50a42 (diff) |
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.
Diffstat (limited to 'serde_v8/magic')
-rw-r--r-- | serde_v8/magic/any_value.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/serde_v8/magic/any_value.rs b/serde_v8/magic/any_value.rs index 9ae39bb2e..df85f90d8 100644 --- a/serde_v8/magic/any_value.rs +++ b/serde_v8/magic/any_value.rs @@ -1,5 +1,3 @@ -use num_bigint::BigInt; - // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use super::buffer::JsBuffer; use super::transl8::FromV8; @@ -7,6 +5,7 @@ use super::transl8::ToV8; use crate::magic::transl8::impl_magic; use crate::Error; use crate::ToJsBuffer; +use num_bigint::BigInt; /// An untagged enum type that can be any of number, string, bool, bigint, or /// buffer. |