changeset 212:da65a19d5883

remove multi-thread from http.rs
author Daniel Boline <ddboline@gmail.com>
date Mon, 22 Feb 2021 17:35:01 -0500
parents 403ea731228b
children 77b59bfc935a
files async-google-apis-common/src/http.rs
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/async-google-apis-common/src/http.rs	Mon Feb 22 17:32:04 2021 -0500
+++ b/async-google-apis-common/src/http.rs	Mon Feb 22 17:35:01 2021 -0500
@@ -2,20 +2,11 @@
 use anyhow::Context;
 use tokio::io::AsyncSeekExt;
 
-#[cfg(feature = "multi-thread")]
 pub trait AsyncWriteUnpin: tokio::io::AsyncWrite + std::marker::Unpin + Send + Sync {}
 
-#[cfg(feature = "multi-thread")]
 impl<T> AsyncWriteUnpin for T
 where T: tokio::io::AsyncWrite + std::marker::Unpin + Send + Sync {}
 
-#[cfg(not(feature = "multi-thread"))]
-pub trait AsyncWriteUnpin: tokio::io::AsyncWrite + std::marker::Unpin {}
-
-#[cfg(not(feature = "multi-thread"))]
-impl<T> AsyncWriteUnpin for T
-where T: tokio::io::AsyncWrite + std::marker::Unpin {}
-
 fn body_to_str(b: hyper::body::Bytes) -> String {
     String::from_utf8(b.to_vec()).unwrap_or("[UTF-8 decode failed]".into())
 }