summaryrefslogtreecommitdiff
path: root/runtime/ops/permissions.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-12-04 14:19:06 +0100
committerGitHub <noreply@github.com>2021-12-04 14:19:06 +0100
commitc59f90d01f06f995e335c6de76aab0b9ba2c98e5 (patch)
tree760bc0534fca502175749d9a7b719c0666f90543 /runtime/ops/permissions.rs
parent72e9720e91630bdf28b1660c20c67baa39bdb586 (diff)
chore: upgrade to Rust 1.57.0 (#12968)
Diffstat (limited to 'runtime/ops/permissions.rs')
-rw-r--r--runtime/ops/permissions.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/ops/permissions.rs b/runtime/ops/permissions.rs
index 05f4b75d7..d8005a743 100644
--- a/runtime/ops/permissions.rs
+++ b/runtime/ops/permissions.rs
@@ -38,8 +38,8 @@ pub fn op_query_permission(
let permissions = state.borrow::<Permissions>();
let path = args.path.as_deref();
let perm = match args.name.as_ref() {
- "read" => permissions.read.query(path.as_deref().map(Path::new)),
- "write" => permissions.write.query(path.as_deref().map(Path::new)),
+ "read" => permissions.read.query(path.map(Path::new)),
+ "write" => permissions.write.query(path.map(Path::new)),
"net" => permissions.net.query(
match args.host.as_deref() {
None => None,
@@ -69,8 +69,8 @@ pub fn op_revoke_permission(
let permissions = state.borrow_mut::<Permissions>();
let path = args.path.as_deref();
let perm = match args.name.as_ref() {
- "read" => permissions.read.revoke(path.as_deref().map(Path::new)),
- "write" => permissions.write.revoke(path.as_deref().map(Path::new)),
+ "read" => permissions.read.revoke(path.map(Path::new)),
+ "write" => permissions.write.revoke(path.map(Path::new)),
"net" => permissions.net.revoke(
match args.host.as_deref() {
None => None,
@@ -100,8 +100,8 @@ pub fn op_request_permission(
let permissions = state.borrow_mut::<Permissions>();
let path = args.path.as_deref();
let perm = match args.name.as_ref() {
- "read" => permissions.read.request(path.as_deref().map(Path::new)),
- "write" => permissions.write.request(path.as_deref().map(Path::new)),
+ "read" => permissions.read.request(path.map(Path::new)),
+ "write" => permissions.write.request(path.map(Path::new)),
"net" => permissions.net.request(
match args.host.as_deref() {
None => None,