Skip to content

Use of impl Into<String> in RequestBuilder::bearer_auth #167

@fgimian

Description

@fgimian

Hey there, great job on this library, thanks for all your hard work! 😄

I was wondering why the bearer_auth function uses token: impl Into<String>. This would potentially result in unnecessary allocation of a String just for use in the Authorization header.

Is there any reason AsRef<str> could not be used instead?

Cheers
Fotis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions