Skip to content

Conversation

emilk
Copy link
Contributor

@emilk emilk commented Sep 18, 2025

I accidentally used confusing labels. Thanks to @kloakin for pointing it out.

This was referenced Sep 18, 2025
impl fmt::Display for Status {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "status: '{}'", self.code())?;
write!(f, "code: '{}'", self.code())?;
Copy link

@kloakin kloakin Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code may be more clear
but the old format string was "status: {:?}, message: {:?}, details: {:?}, metadata: {:?}"
so I think either one might be ok


if !self.message().is_empty() {
write!(f, ", self: {:?}", self.message())?;
write!(f, ", message: {:?}", self.message())?;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@tottoto tottoto merged commit f4b46e5 into hyperium:master Sep 20, 2025
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants