We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c0d43f commit 08526f9Copy full SHA for 08526f9
src/web/mod.rs
@@ -111,7 +111,7 @@ impl CratesfyiHandler {
111
112
let shared_resources = Self::chain(&pool_factory, rustdoc::SharedResourceHandler);
113
let router_chain = Self::chain(&pool_factory, routes.iron_router());
114
- let prefix = PathBuf::from(env::var("CRATESFYI_PREFIX").unwrap()).join("public_html");
+ let prefix = PathBuf::from(env::var("CRATESFYI_PREFIX").expect("CRATESFYI_PREFIX environment variable does not exists")).join("public_html");
115
let static_handler = Static::new(prefix)
116
.cache(Duration::from_secs(STATIC_FILE_CACHE_DURATION));
117
0 commit comments