You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hey there, great job on this library, thanks for all your hard work! 😄
I was wondering why the
bearer_auth
function usestoken: impl Into<String>
. This would potentially result in unnecessary allocation of aString
just for use in theAuthorization
header.Is there any reason
AsRef<str>
could not be used instead?Cheers
Fotis
The text was updated successfully, but these errors were encountered: