aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Huang <huangluke@google.com>2021-06-30 19:45:49 +0800
committerLuke Huang <huangluke@google.com>2021-06-30 19:46:59 +0800
commit7339bd125207a571531076675fc190aaa4bccb17 (patch)
tree9c1d9c35c4e23b2238262c797d320f7dceb07639
parentc1db155f8cab9f4b5c0a87fd222d2702d08d5670 (diff)
downloadbase64-7339bd125207a571531076675fc190aaa4bccb17.tar.gz
Fix the error for rustdoc buildplatform-tools-31.0.3
Test: build/soong/scripts/build-rustdocs.sh build pass Bug: 192427084 Change-Id: I4da34769bdeb52deaaa033cc27f16f2ba193ea19
-rw-r--r--patches/encoder.patch13
-rw-r--r--src/write/encoder.rs2
2 files changed, 14 insertions, 1 deletions
diff --git a/patches/encoder.patch b/patches/encoder.patch
new file mode 100644
index 0000000..ac1cd73
--- /dev/null
+++ b/patches/encoder.patch
@@ -0,0 +1,13 @@
+diff --git a/src/write/encoder.rs b/src/write/encoder.rs
+index 8a48f43..4bb57eb 100644
+--- a/src/write/encoder.rs
++++ b/src/write/encoder.rs
+@@ -223,7 +223,7 @@ impl<W: Write> Write for EncoderWriter<W> {
+ /// Under non-error circumstances, this returns `Ok` with the value being the number of bytes
+ /// of `input` consumed. The value may be `0`, which interacts poorly with `write_all`, which
+ /// interprets `Ok(0)` as an error, despite it being allowed by the contract of `write`. See
+- /// https://github.com/rust-lang/rust/issues/56889 for more on that.
++ /// <https://github.com/rust-lang/rust/issues/56889> for more on that.
+ ///
+ /// If the previous call to `write` provided more (encoded) data than the delegate writer could
+ /// accept in a single call to its `write`, the remaining data is buffered. As long as buffered
diff --git a/src/write/encoder.rs b/src/write/encoder.rs
index 8a48f43..4bb57eb 100644
--- a/src/write/encoder.rs
+++ b/src/write/encoder.rs
@@ -223,7 +223,7 @@ impl<W: Write> Write for EncoderWriter<W> {
/// Under non-error circumstances, this returns `Ok` with the value being the number of bytes
/// of `input` consumed. The value may be `0`, which interacts poorly with `write_all`, which
/// interprets `Ok(0)` as an error, despite it being allowed by the contract of `write`. See
- /// https://github.com/rust-lang/rust/issues/56889 for more on that.
+ /// <https://github.com/rust-lang/rust/issues/56889> for more on that.
///
/// If the previous call to `write` provided more (encoded) data than the delegate writer could
/// accept in a single call to its `write`, the remaining data is buffered. As long as buffered