Skip to content

Commit 70e072e

Browse files
committed
Note char::MAX_LEN_UTF8 for a future MSRV bump
Maybe a year and a half if I keep tracking Debian as my baseline?
1 parent 4230278 commit 70e072e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/yaml/encoding.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ where
152152

153153
/// The required size of a buffer large enough to encode any `char` as UTF-8,
154154
/// per [`char::encode_utf8`].
155+
///
156+
/// TODO: Migrate to [`char::MAX_LEN_UTF8`] at MSRV 1.93+.
155157
const MAX_UTF8_ENCODED_LEN: usize = 4;
156158

157159
/// A streaming UTF-8 encoder that pairs with [`Utf16Decoder`] or

0 commit comments

Comments
 (0)