summaryrefslogtreecommitdiff
path: root/ext/web
diff options
context:
space:
mode:
authorYiyu Lin <linyiyu1992@gmail.com>2023-01-13 15:51:32 +0800
committerGitHub <noreply@github.com>2023-01-13 16:51:32 +0900
commita00e432297d2ae119c8e1097aec74badc886f912 (patch)
tree7380b37245e889e97a8c7b1535a1e31fddb74738 /ext/web
parent5707a958ac2b44d573d50260b1d0d40887662011 (diff)
chore: add `copyright_checker` tool and add the missing copyright (#17285)
Diffstat (limited to 'ext/web')
-rw-r--r--ext/web/benches/encoding.rs3
-rw-r--r--ext/web/benches/timers_ops.rs3
-rw-r--r--ext/web/blob.rs15
-rw-r--r--ext/web/message_port.rs2
4 files changed, 14 insertions, 9 deletions
diff --git a/ext/web/benches/encoding.rs b/ext/web/benches/encoding.rs
index 8c9eaeb6c..01fba9e66 100644
--- a/ext/web/benches/encoding.rs
+++ b/ext/web/benches/encoding.rs
@@ -1,8 +1,9 @@
-use deno_core::Extension;
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use deno_bench_util::bench_js_sync;
use deno_bench_util::bench_or_profile;
use deno_bench_util::bencher::{benchmark_group, Bencher};
+use deno_core::Extension;
use deno_web::BlobStore;
struct Permissions;
diff --git a/ext/web/benches/timers_ops.rs b/ext/web/benches/timers_ops.rs
index 2ba93c5e1..024d52360 100644
--- a/ext/web/benches/timers_ops.rs
+++ b/ext/web/benches/timers_ops.rs
@@ -1,8 +1,9 @@
-use deno_core::Extension;
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use deno_bench_util::bench_js_async;
use deno_bench_util::bench_or_profile;
use deno_bench_util::bencher::{benchmark_group, Bencher};
+use deno_core::Extension;
use deno_web::BlobStore;
struct Permissions;
diff --git a/ext/web/blob.rs b/ext/web/blob.rs
index 24cd13454..e4ba93a2f 100644
--- a/ext/web/blob.rs
+++ b/ext/web/blob.rs
@@ -1,18 +1,19 @@
-use async_trait::async_trait;
-use deno_core::error::type_error;
-use deno_core::op;
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-use deno_core::parking_lot::Mutex;
-use deno_core::url::Url;
-use deno_core::ZeroCopyBuf;
-use serde::{Deserialize, Serialize};
use std::cell::RefCell;
use std::collections::HashMap;
use std::fmt::Debug;
use std::rc::Rc;
use std::sync::Arc;
+use async_trait::async_trait;
+use deno_core::error::type_error;
use deno_core::error::AnyError;
+use deno_core::op;
+use deno_core::parking_lot::Mutex;
+use deno_core::url::Url;
+use deno_core::ZeroCopyBuf;
+use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::Location;
diff --git a/ext/web/message_port.rs b/ext/web/message_port.rs
index 48c899216..f287fc82d 100644
--- a/ext/web/message_port.rs
+++ b/ext/web/message_port.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use std::borrow::Cow;
use std::cell::RefCell;
use std::rc::Rc;