INNER CODE UNIT · Rust

value

shenmintao/marginalia · desktop/src-tauri/src/lib.rs:189

                value = value[1..value.len() - 1].to_string();
            } else if let Some(comment_at) = value.find(" #") {
                value.truncate(comment_at);
                value = value.trim_end().to_string();
            }
        }
        if !value.is_empty() {
            return Some(value);
        }
    }
    None
}

fn configured_api_host(home: &Path) -> String {
    configured_env_value(home, "MARGINALIA_API_HOST").unwrap_or_else(|| "127.0.0.1".to_string())
}

fn configured_api_port(home: &Path) -> Option<u16> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…