diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/pem-rfc7468/src/encoder.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/pem-rfc7468/src/encoder.rs')
-rw-r--r-- | vendor/pem-rfc7468/src/encoder.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vendor/pem-rfc7468/src/encoder.rs b/vendor/pem-rfc7468/src/encoder.rs index 016e224c6..c48df1f62 100644 --- a/vendor/pem-rfc7468/src/encoder.rs +++ b/vendor/pem-rfc7468/src/encoder.rs @@ -119,7 +119,6 @@ pub fn encode<'o>( /// Encode a PEM document according to RFC 7468's "Strict" grammar, returning /// the result as a [`String`]. #[cfg(feature = "alloc")] -#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] pub fn encode_string(label: &str, line_ending: LineEnding, input: &[u8]) -> Result<String> { let expected_len = encoded_len(label, line_ending, input)?; let mut buf = vec![0u8; expected_len]; @@ -287,7 +286,6 @@ impl<'l, 'o> Encoder<'l, 'o> { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl<'l, 'o> io::Write for Encoder<'l, 'o> { fn write(&mut self, buf: &[u8]) -> io::Result<usize> { self.encode(buf)?; |