aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-05-25 00:39:50 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-25 00:39:50 +0000
commite88631acfee8452211162366bacde8afc4613e15 (patch)
tree24035397ebd06316650dc53ec3ff6213e4ddd65b
parentcda0442d5281527aa49c2ccd9d000d7d7850fd34 (diff)
parentd09ec23259c8acb0bba074cc3cf72e806099bed4 (diff)
downloadfutures-sink-e88631acfee8452211162366bacde8afc4613e15.tar.gz
Upgrade rust/crates/futures-sink to 0.3.15 am: d09ec23259
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-sink/+/1712275 Change-Id: Ia7287f746b25f059ed5953a3fce8b7964ae6beee
-rw-r--r--.cargo_vcs_info.json2
-rw-r--r--Cargo.toml2
-rw-r--r--Cargo.toml.orig2
-rw-r--r--METADATA8
-rw-r--r--TEST_MAPPING128
-rw-r--r--src/lib.rs15
6 files changed, 134 insertions, 23 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index f3ad3ab..ec6442e 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,5 +1,5 @@
{
"git": {
- "sha1": "c91f8691672c7401b1923ab00bf138975c99391a"
+ "sha1": "fc080d153bc7bf00429ec5e2b91e2f21f2243846"
}
}
diff --git a/Cargo.toml b/Cargo.toml
index e1a3ccd..35839be 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@
[package]
edition = "2018"
name = "futures-sink"
-version = "0.3.13"
+version = "0.3.15"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
description = "The asynchronous `Sink` trait for the futures-rs library.\n"
homepage = "https://rust-lang.github.io/futures-rs"
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index 59853a9..02cb0d3 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -1,7 +1,7 @@
[package]
name = "futures-sink"
edition = "2018"
-version = "0.3.13"
+version = "0.3.15"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/futures-rs"
diff --git a/METADATA b/METADATA
index d4681e3..1eae0d4 100644
--- a/METADATA
+++ b/METADATA
@@ -7,13 +7,13 @@ third_party {
}
url {
type: ARCHIVE
- value: "https://static.crates.io/crates/futures-sink/futures-sink-0.3.13.crate"
+ value: "https://static.crates.io/crates/futures-sink/futures-sink-0.3.15.crate"
}
- version: "0.3.13"
+ version: "0.3.15"
license_type: NOTICE
last_upgrade_date {
year: 2021
- month: 4
- day: 1
+ month: 5
+ day: 19
}
}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index a20d8a9..573abca 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -2,40 +2,49 @@
{
"presubmit": [
{
- "name": "anyhow_device_test_tests_test_context"
+ "name": "ZipFuseTest"
},
{
- "name": "tokio-test_device_test_tests_macros"
+ "name": "anyhow_device_test_src_lib"
},
{
- "name": "futures-sink_device_test_src_lib"
+ "name": "anyhow_device_test_tests_test_autotrait"
},
{
- "name": "anyhow_device_test_tests_test_convert"
+ "name": "anyhow_device_test_tests_test_boxed"
},
{
- "name": "tokio-test_device_test_tests_block_on"
+ "name": "anyhow_device_test_tests_test_chain"
},
{
- "name": "anyhow_device_test_tests_test_macros"
+ "name": "anyhow_device_test_tests_test_context"
},
{
- "name": "anyhow_device_test_src_lib"
+ "name": "anyhow_device_test_tests_test_convert"
+ },
+ {
+ "name": "anyhow_device_test_tests_test_downcast"
},
{
"name": "anyhow_device_test_tests_test_ffi"
},
{
- "name": "anyhow_device_test_tests_test_downcast"
+ "name": "anyhow_device_test_tests_test_fmt"
+ },
+ {
+ "name": "anyhow_device_test_tests_test_macros"
+ },
+ {
+ "name": "anyhow_device_test_tests_test_repr"
},
{
"name": "anyhow_device_test_tests_test_source"
},
{
- "name": "anyhow_device_test_tests_test_autotrait"
+ "name": "authfs_device_test_src_lib"
},
{
- "name": "anyhow_device_test_tests_test_fmt"
+ "name": "futures-sink_device_test_src_lib"
},
{
"name": "futures-util_device_test_src_lib"
@@ -44,16 +53,109 @@
"name": "tokio-test_device_test_src_lib"
},
{
- "name": "anyhow_device_test_tests_test_chain"
+ "name": "tokio-test_device_test_tests_block_on"
},
{
"name": "tokio-test_device_test_tests_io"
},
{
- "name": "anyhow_device_test_tests_test_repr"
+ "name": "tokio-test_device_test_tests_macros"
},
{
- "name": "anyhow_device_test_tests_test_boxed"
+ "name": "tokio_device_test_tests_buffered"
+ },
+ {
+ "name": "tokio_device_test_tests_io_async_read"
+ },
+ {
+ "name": "tokio_device_test_tests_io_copy_bidirectional"
+ },
+ {
+ "name": "tokio_device_test_tests_io_lines"
+ },
+ {
+ "name": "tokio_device_test_tests_io_mem_stream"
+ },
+ {
+ "name": "tokio_device_test_tests_io_read"
+ },
+ {
+ "name": "tokio_device_test_tests_io_read_buf"
+ },
+ {
+ "name": "tokio_device_test_tests_io_read_to_end"
+ },
+ {
+ "name": "tokio_device_test_tests_io_take"
+ },
+ {
+ "name": "tokio_device_test_tests_io_write"
+ },
+ {
+ "name": "tokio_device_test_tests_io_write_all"
+ },
+ {
+ "name": "tokio_device_test_tests_io_write_buf"
+ },
+ {
+ "name": "tokio_device_test_tests_io_write_int"
+ },
+ {
+ "name": "tokio_device_test_tests_macros_join"
+ },
+ {
+ "name": "tokio_device_test_tests_no_rt"
+ },
+ {
+ "name": "tokio_device_test_tests_rt_basic"
+ },
+ {
+ "name": "tokio_device_test_tests_rt_threaded"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_barrier"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_broadcast"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_errors"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_mpsc"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_mutex_owned"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_rwlock"
+ },
+ {
+ "name": "tokio_device_test_tests_sync_watch"
+ },
+ {
+ "name": "tokio_device_test_tests_task_local"
+ },
+ {
+ "name": "tokio_device_test_tests_task_local_set"
+ },
+ {
+ "name": "tokio_device_test_tests_tcp_accept"
+ },
+ {
+ "name": "tokio_device_test_tests_tcp_echo"
+ },
+ {
+ "name": "tokio_device_test_tests_tcp_into_std"
+ },
+ {
+ "name": "tokio_device_test_tests_tcp_shutdown"
+ },
+ {
+ "name": "tokio_device_test_tests_time_rt"
+ },
+ {
+ "name": "tokio_device_test_tests_uds_split"
}
]
}
diff --git a/src/lib.rs b/src/lib.rs
index 6193f51..4dc2fb3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -207,7 +207,10 @@ mod if_alloc {
impl<S: ?Sized + Sink<Item> + Unpin, Item> Sink<Item> for alloc::boxed::Box<S> {
type Error = S::Error;
- fn poll_ready(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+ fn poll_ready(
+ mut self: Pin<&mut Self>,
+ cx: &mut Context<'_>,
+ ) -> Poll<Result<(), Self::Error>> {
Pin::new(&mut **self).poll_ready(cx)
}
@@ -215,11 +218,17 @@ mod if_alloc {
Pin::new(&mut **self).start_send(item)
}
- fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+ fn poll_flush(
+ mut self: Pin<&mut Self>,
+ cx: &mut Context<'_>,
+ ) -> Poll<Result<(), Self::Error>> {
Pin::new(&mut **self).poll_flush(cx)
}
- fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+ fn poll_close(
+ mut self: Pin<&mut Self>,
+ cx: &mut Context<'_>,
+ ) -> Poll<Result<(), Self::Error>> {
Pin::new(&mut **self).poll_close(cx)
}
}