Skip to content
Snippets Groups Projects

GuardUsage: restrictions: Use list builder

Merged Ian Jackson requested to merge Diziet/arti:guard-restriction-list into main
  1. May 04, 2022
    • Ian Jackson's avatar
      GuardUsage: restrictions Add semver note · c84d6091
      Ian Jackson authored
      c84d6091
    • Ian Jackson's avatar
      GuardUsage: restrictions: Use list builder · 015db3d7
      Ian Jackson authored
      Although these do not appear in the config, it does have a builder.
      It seems sensible to get rid of this ad-hoc list manipulation site,
      and replace it with our standard list builder API.
      
      define_list_builder_helper requires that the builder element type be
      Deserialize.  Currently GuardUsageRestriction is a transparent, public
      enum, so we aren't really exposing anything.
      
      We could introduce GuardUsageRestrictionBuilder now, but
      since it's not in the config and thereofore only in the public API of
      the lower crates, we can definitely put that off.
      015db3d7
Loading