diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /runtime/ops/permissions.rs | |
parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/ops/permissions.rs')
-rw-r--r-- | runtime/ops/permissions.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/ops/permissions.rs b/runtime/ops/permissions.rs index 2b01da0a9..3c48c1e8d 100644 --- a/runtime/ops/permissions.rs +++ b/runtime/ops/permissions.rs @@ -59,7 +59,7 @@ pub fn op_query_permission( n => { return Err(custom_error( "ReferenceError", - format!("No such permission name: {}", n), + format!("No such permission name: {n}"), )) } }; @@ -93,7 +93,7 @@ pub fn op_revoke_permission( n => { return Err(custom_error( "ReferenceError", - format!("No such permission name: {}", n), + format!("No such permission name: {n}"), )) } }; @@ -127,7 +127,7 @@ pub fn op_request_permission( n => { return Err(custom_error( "ReferenceError", - format!("No such permission name: {}", n), + format!("No such permission name: {n}"), )) } }; @@ -135,7 +135,7 @@ pub fn op_request_permission( } fn parse_host(host_str: &str) -> Result<(String, Option<u16>), AnyError> { - let url = url::Url::parse(&format!("http://{}/", host_str)) + let url = url::Url::parse(&format!("http://{host_str}/")) .map_err(|_| uri_error("Invalid host"))?; if url.path() != "/" { return Err(uri_error("Invalid host")); |