Skip to content

status: make as_str return &'static str#510

Closed
jhgg wants to merge 1 commit intohyperium:masterfrom
jhgg:http-status-code-as-str-static
Closed

status: make as_str return &'static str#510
jhgg wants to merge 1 commit intohyperium:masterfrom
jhgg:http-status-code-as-str-static

Conversation

@jhgg
Copy link
Copy Markdown

@jhgg jhgg commented Nov 8, 2021

This is technically a 'static str, however we return it as not that.

Is there a reason, can we make this a 'static str? This will help resolve some lifetime around metrics we are encountering.

@CryZe
Copy link
Copy Markdown

CryZe commented Nov 8, 2021

Duplicate of #452

@jhgg
Copy link
Copy Markdown
Author

jhgg commented Nov 8, 2021

Aaaa, would love to see #452 merged, will close this PR!

@jhgg jhgg closed this Nov 8, 2021
@jhgg jhgg deleted the http-status-code-as-str-static branch November 8, 2021 22:24
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.

2 participants