Skip to content

Commit

Permalink
chore(reflection): Use write macro instead of write_fmt (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jun 15, 2022
1 parent a585a72 commit 8287988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-reflection/src/server.rs
Expand Up @@ -39,7 +39,7 @@ impl Display for Error {
match self {
Error::DecodeError(_) => f.write_str("error decoding FileDescriptorSet from buffer"),
Error::InvalidFileDescriptorSet(s) => {
f.write_fmt(format_args!("invalid FileDescriptorSet - {}", s))
write!(f, "invalid FileDescriptorSet - {}", s)
}
}
}
Expand Down

0 comments on commit 8287988

Please sign in to comment.