aboutsummaryrefslogtreecommitdiff
path: root/src/url.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.rs')
-rw-r--r--src/url.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/url.rs b/src/url.rs
index 56858e6..0c95eb0 100644
--- a/src/url.rs
+++ b/src/url.rs
@@ -42,16 +42,7 @@ pub fn from_path(
} else {
format!(
"{}{}{}",
- {
- std::env::var("ROOT").unwrap_or_else(|_| {
- warn!(
- "could not use ROOT from environment variables, proceeding with \
- default root: gemini://fuwn.me"
- );
-
- "gemini://fuwn.me".to_string()
- })
- },
+ &crate::environment::ENVIRONMENT.root,
path,
if fallback { "/" } else { "" }
)