config: domain
This commit is contained in:
parent
557cfa4a55
commit
8e8766617a
4 changed files with 22 additions and 6 deletions
|
|
@ -30,11 +30,11 @@ pub struct Policy {
|
|||
|
||||
pub struct CompiledPolicies {
|
||||
pub first_line_regex_set: RegexSet,
|
||||
pub policies: Vec<Policy>,
|
||||
pub policies: &'static [Policy],
|
||||
}
|
||||
|
||||
impl CompiledPolicies {
|
||||
pub fn new(policies: Vec<Policy>) -> Self {
|
||||
pub fn new(policies: &'static [Policy]) -> Self {
|
||||
let mut first_line_regexes = Vec::new();
|
||||
|
||||
for policy in policies.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue