memorysafety / sudo-rs

A memory safe implementation of sudo and su.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

move `Authorization::Allowed` fields to its own type

pvdrz opened this issue · comments

          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)