Skip to content

Commit 8287988

Browse files
authored
chore(reflection): Use write macro instead of write_fmt (#1015)
1 parent a585a72 commit 8287988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic-reflection/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Display for Error {
3939
match self {
4040
Error::DecodeError(_) => f.write_str("error decoding FileDescriptorSet from buffer"),
4141
Error::InvalidFileDescriptorSet(s) => {
42-
f.write_fmt(format_args!("invalid FileDescriptorSet - {}", s))
42+
write!(f, "invalid FileDescriptorSet - {}", s)
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)