-
Notifications
You must be signed in to change notification settings - Fork 106
Cannot compile docs.rs #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When removing the Replacing the marked |
It works with From 891db3f6f2dfdb5cfbab805931823afb7cc7b24a Mon Sep 17 00:00:00 2001
From: bjorn3 <[email protected]>
Date: Sat, 1 Feb 2020 17:02:37 +0100
Subject: [PATCH] Workaround missing Fn for Box<Fn> impl
---
src/web/mod.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/web/mod.rs b/src/web/mod.rs
index 07190a9..0619530 100644
--- a/src/web/mod.rs
+++ b/src/web/mod.rs
@@ -110,8 +110,8 @@ impl CratesfyiHandler {
let routes = routes::build_routes();
let blacklisted_prefixes = routes.page_prefixes();
- let shared_resources = Self::chain(&pool_factory, rustdoc::SharedResourceHandler);
- let router_chain = Self::chain(&pool_factory, routes.iron_router());
+ let shared_resources = Self::chain(&*pool_factory, rustdoc::SharedResourceHandler);
+ let router_chain = Self::chain(&*pool_factory, routes.iron_router());
let prefix = PathBuf::from(env::var("CRATESFYI_PREFIX").unwrap()).join("public_html");
let static_handler = Static::new(prefix)
.cache(Duration::from_secs(STATIC_FILE_CACHE_DURATION));
@@ -181,7 +181,7 @@ impl Handler for CratesfyiHandler {
}
- Self::chain(&self.pool_factory, err).handle(req)
+ Self::chain(&*self.pool_factory, err).handle(req)
})
}
}
--
2.21.0 (Apple Git-122) |
Yeah libmagic is a known issue on our end. Thanks for checking and congrats that it works! |
Not sure what's going on here, it works fine with cargo
1.42.0-nightly (9d32b7b01 2020-01-26)
, but using cg_cranelift breaks:The text was updated successfully, but these errors were encountered: