♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(url): use unwrap instead of map

Fuwn 7a4276e2 bb657118

+7 -10
+7 -10
src/url.rs
··· 66 66 format!( 67 67 "{}{}{}", 68 68 { 69 - std::env::var("ROOT").map_or_else( 70 - |_| { 71 - warn!( 72 - "could not use ROOT from environment variables, proceeding \ 73 - with default root: gemini://fuwn.me" 74 - ); 69 + std::env::var("ROOT").unwrap_or_else(|_| { 70 + warn!( 71 + "could not use ROOT from environment variables, proceeding with \ 72 + default root: gemini://fuwn.me" 73 + ); 75 74 76 - "gemini://fuwn.me".to_string() 77 - }, 78 - |root| root, 79 - ) 75 + "gemini://fuwn.me".to_string() 76 + }) 80 77 }, 81 78 path, 82 79 if fallback { "/" } else { "" }