diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-12-30 03:34:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 19:34:35 +0100 |
commit | d5f3a749eb9b86ed24378a3ee39ee443c374da53 (patch) | |
tree | bedbacd5f0b08f647b825bcd83e1d84798ce9a39 /cli/tools/installer.rs | |
parent | 090ca4d3a73cf8538418a2a19d373a6860e8c59a (diff) |
refactor(cli/flags): change allow_read/write/net types from bool to Option<Vec<T>> (#8896)
This PR refactors "cli/flags.rs" and "runtime/permissions.rs" so
that "allow_read", "allow_write" and "allow_net" themselves
have allowlists, instead of storing them in additional fields.
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r-- | cli/tools/installer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index ec527949d..48aa52480 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -632,8 +632,8 @@ mod tests { install( Flags { - allow_net: true, - allow_read: true, + allow_net: Some(vec![]), + allow_read: Some(vec![]), no_check: true, log_level: Some(Level::Error), ..Flags::default() |