From d5f3a749eb9b86ed24378a3ee39ee443c374da53 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Wed, 30 Dec 2020 03:34:35 +0900 Subject: refactor(cli/flags): change allow_read/write/net types from bool to Option> (#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. --- cli/tools/installer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tools') 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() -- cgit v1.2.3