move `Authorization::Allowed` fields to its own type
pvdrz opened this issue · comments
Christian Poveda Ruiz commented
the fact that all the fields of `Authorization::Allowed` are passed into this method to me is an indication that those fields should be their own struct, e.g. `enum Authorization { Allowed(AuthorizationAllowed), /* .. */ }` but that feels out of scope for this PR so I won't refactor that in this PR.
Originally posted by @japaric in #711 (comment)