Skip to content

status: make as_str return &'static str - #510

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

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

Conversation

@jhgg

@jhgg jhgg commented Nov 8, 2021

Copy link
Copy Markdown

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

CryZe commented Nov 8, 2021

Copy link
Copy Markdown

Duplicate of #452

@jhgg

jhgg commented Nov 8, 2021

Copy link
Copy Markdown
Author

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