summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/error_codes.rs2
-rw-r--r--core/snapshot_util.rs7
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]);