Remove unneeded type ascription

This commit is contained in:
David Tolnay 2020-01-17 19:50:48 -08:00
parent 137ab48aff
commit dbf1f9ab8f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -633,7 +633,7 @@ impl Serialize for SystemTime {
#[cfg(feature = "std")]
macro_rules! serialize_display_bounded_length {
($value:expr, $max:expr, $serializer:expr) => {{
let mut buffer: [u8; $max] = [0u8; $max];
let mut buffer = [0u8; $max];
let remaining_len = {
let mut remaining = &mut buffer[..];
write!(remaining, "{}", $value).unwrap();