From a00e432297d2ae119c8e1097aec74badc886f912 Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Fri, 13 Jan 2023 15:51:32 +0800 Subject: chore: add `copyright_checker` tool and add the missing copyright (#17285) --- core/error_codes.rs | 2 ++ core/snapshot_util.rs | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/error_codes.rs b/core/error_codes.rs index 6a8dd9fa3..874aa4ec6 100644 --- a/core/error_codes.rs +++ b/core/error_codes.rs @@ -1,3 +1,5 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. + use anyhow::Error; pub fn get_error_code(err: &Error) -> Option<&'static str> { diff --git a/core/snapshot_util.rs b/core/snapshot_util.rs index bacc0c6ae..b35cabbfa 100644 --- a/core/snapshot_util.rs +++ b/core/snapshot_util.rs @@ -1,9 +1,12 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. + +use std::path::Path; +use std::path::PathBuf; + use crate::Extension; use crate::JsRuntime; use crate::RuntimeOptions; use crate::Snapshot; -use std::path::Path; -use std::path::PathBuf; pub type CompressionCb = dyn Fn(&mut Vec, &[u8]); -- cgit v1.2.3