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
Hey there, great job on this library, thanks for all your hard work! π
I was wondering why the
bearer_authfunction usestoken: impl Into<String>. This would potentially result in unnecessary allocation of aStringjust for use in theAuthorizationheader.Is there any reason
AsRef<str>could not be used instead?Cheers
Fotis