diff options
| author | Yiyu Lin <linyiyu1992@gmail.com> | 2023-01-13 15:51:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-13 16:51:32 +0900 |
| commit | a00e432297d2ae119c8e1097aec74badc886f912 (patch) | |
| tree | 7380b37245e889e97a8c7b1535a1e31fddb74738 /core | |
| parent | 5707a958ac2b44d573d50260b1d0d40887662011 (diff) | |
chore: add `copyright_checker` tool and add the missing copyright (#17285)
Diffstat (limited to 'core')
| -rw-r--r-- | core/error_codes.rs | 2 | ||||
| -rw-r--r-- | core/snapshot_util.rs | 7 |
2 files changed, 7 insertions, 2 deletions
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>, &[u8]); |
