summaryrefslogtreecommitdiff
path: root/dhall/src/semantics
diff options
context:
space:
mode:
authorNadrieril2020-06-24 17:00:44 +0100
committerNadrieril2020-06-24 17:00:44 +0100
commit3d9c0b12c6b34185e556071ee16401691bfd8e49 (patch)
treebf915cdaacf568632981077b8f60ce905101c138 /dhall/src/semantics
parentbbf874fdd4af77493e6f028608e299c0130e9ec0 (diff)
fix: panic on remote import on wasm
Sadly we would need proper async support for that to work
Diffstat (limited to '')
-rw-r--r--dhall/src/semantics/resolve/resolve.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/dhall/src/semantics/resolve/resolve.rs b/dhall/src/semantics/resolve/resolve.rs
index fb770db..114bd9b 100644
--- a/dhall/src/semantics/resolve/resolve.rs
+++ b/dhall/src/semantics/resolve/resolve.rs
@@ -201,10 +201,8 @@ pub(crate) fn download_http_text(url: Url) -> Result<String, Error> {
Ok(reqwest::blocking::get(url).unwrap().text().unwrap())
}
#[cfg(target_arch = "wasm32")]
-pub(crate) fn download_http_text(url: Url) -> Result<String, Error> {
- blocking::block_on(async {
- Ok(reqwest::get(url).await.unwrap().text().await.unwrap())
- })
+pub(crate) fn download_http_text(_url: Url) -> Result<String, Error> {
+ panic!("Remote imports are not supported on wasm yet")
}
fn make_aslocation_uniontype() -> Expr {