serde: Update base64.rs with a comment

Some minimal comment after https://github.com/ruma/ruma/pull/773#discussion_r757822969.
This commit is contained in:
Jonathan de Jong 2022-01-13 18:33:56 +01:00 committed by GitHub
parent 4c859c5aeb
commit 9bdde6241e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ pub struct Base64<B = Vec<u8>> {
bytes: B, bytes: B,
} }
// See https://github.com/matrix-org/matrix-doc/issues/3211
const BASE64_CONFIG: base64::Config = base64::STANDARD_NO_PAD.decode_allow_trailing_bits(true); const BASE64_CONFIG: base64::Config = base64::STANDARD_NO_PAD.decode_allow_trailing_bits(true);
impl<B: AsRef<[u8]>> Base64<B> { impl<B: AsRef<[u8]>> Base64<B> {