summaryrefslogtreecommitdiff
path: root/ext/flash
diff options
context:
space:
mode:
Diffstat (limited to 'ext/flash')
-rw-r--r--ext/flash/chunked.rs3
-rw-r--r--ext/flash/sendfile.rs2
-rw-r--r--ext/flash/socket.rs15
3 files changed, 11 insertions, 9 deletions
diff --git a/ext/flash/chunked.rs b/ext/flash/chunked.rs
index d414f211e..711dd717d 100644
--- a/ext/flash/chunked.rs
+++ b/ext/flash/chunked.rs
@@ -1,7 +1,8 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//
// Based on https://github.com/frewsxcv/rust-chunked-transfer/blob/5c08614458580f9e7a85124021006d83ce1ed6e9/src/decoder.rs
// Copyright 2015 The tiny-http Contributors
// Copyright 2015 The rust-chunked-transfer Contributors
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use std::error::Error;
use std::fmt;
diff --git a/ext/flash/sendfile.rs b/ext/flash/sendfile.rs
index 43b5323a4..92e8f2bb7 100644
--- a/ext/flash/sendfile.rs
+++ b/ext/flash/sendfile.rs
@@ -1,5 +1,5 @@
-// Forked from https://github.com/Thomasdezeeuw/sendfile/blob/024f82cd4dede9048392a5bd6d8afcd4d5aa83d5/src/lib.rs
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// Forked from https://github.com/Thomasdezeeuw/sendfile/blob/024f82cd4dede9048392a5bd6d8afcd4d5aa83d5/src/lib.rs
use std::future::Future;
use std::io;
diff --git a/ext/flash/socket.rs b/ext/flash/socket.rs
index 8256be8a0..77881d536 100644
--- a/ext/flash/socket.rs
+++ b/ext/flash/socket.rs
@@ -1,12 +1,13 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
+use std::cell::UnsafeCell;
+use std::future::Future;
+use std::io::{Read, Write};
+use std::pin::Pin;
+use std::sync::{Arc, Mutex};
+
use deno_core::error::AnyError;
use mio::net::TcpStream;
-use std::{
- cell::UnsafeCell,
- future::Future,
- io::{Read, Write},
- pin::Pin,
- sync::{Arc, Mutex},
-};
use tokio::sync::mpsc;
use crate::ParseStatus;