Closed mhutter closed 8 months ago
Make this possible:
const SCOPE_GROUPS: Scope = Scope::new("groups");
The Scope items requested are not something that changes often, so it would be great to have a way to make them const.
Scope
const
While their constructor already is a const fn, they take a String, which cannot be const (due to being allocated on the heap)
const fn
String
Since Scope is nothing more as a wrapper, it seems feasible to have it take a &str instead of a String.
&str
During writing I realized Scope is a reexport from oauth2
oauth2
Make this possible:
Use case
The
Scope
items requested are not something that changes often, so it would be great to have a way to make themconst
.While their constructor already is a
const fn
, they take aString
, which cannot beconst
(due to being allocated on the heap)Implementation idea
Since
Scope
is nothing more as a wrapper, it seems feasible to have it take a&str
instead of a String.