Skip to content

Commit

Permalink
Remove unneeded type ascription
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 18, 2020
1 parent 137ab48 commit dbf1f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/ser/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dbf1f9a

Please sign in to comment.