summaryrefslogtreecommitdiff
path: root/op_crates/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/fetch')
-rw-r--r--op_crates/fetch/lib.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/op_crates/fetch/lib.rs b/op_crates/fetch/lib.rs
index dbca63802..3692f916c 100644
--- a/op_crates/fetch/lib.rs
+++ b/op_crates/fetch/lib.rs
@@ -114,9 +114,7 @@ where
{
let state_ = state.borrow();
- // TODO(ry) The Rc below is a hack because we store Rc<CliState> in OpState.
- // Ideally it could be removed.
- let permissions = state_.borrow::<Rc<FP>>();
+ let permissions = state_.borrow::<FP>();
permissions.check_net_url(&url_)?;
}
@@ -221,9 +219,7 @@ where
let args: CreateHttpClientOptions = serde_json::from_value(args)?;
if let Some(ca_file) = args.ca_file.clone() {
- // TODO(ry) The Rc below is a hack because we store Rc<CliState> in OpState.
- // Ideally it could be removed.
- let permissions = state.borrow::<Rc<FP>>();
+ let permissions = state.borrow::<FP>();
permissions.check_read(&PathBuf::from(ca_file))?;
}