Reformat after the rename

`APSIS_BOOK` is one character longer than `APSIS_WEB`, which pushes a
few lines past the width rustfmt allows.
This commit is contained in:
dev 2026-10-02 01:29:36 +08:00
parent cd2f4de8ba
commit ed2b779d7b
1 changed files with 5 additions and 4 deletions

View File

@ -104,15 +104,16 @@ impl Options {
/// either of the two separate options is an error, because the order in
/// which they would apply is not defined.
fn from_environment() -> Result<Self, String> {
let mut host = std::env::var("APSIS_BOOK_HOST").unwrap_or_else(|_| DEFAULT_HOST.to_string());
let mut host =
std::env::var("APSIS_BOOK_HOST").unwrap_or_else(|_| DEFAULT_HOST.to_string());
let mut port = match std::env::var("APSIS_BOOK_PORT") {
Ok(value) => parse_port(&value).map_err(|error| format!("APSIS_BOOK_PORT: {error}"))?,
Err(_) => DEFAULT_PORT,
};
let mut combined: Option<SocketAddr> = match std::env::var("APSIS_BOOK_ADDRESS") {
Ok(value) => {
Some(parse_address(&value).map_err(|error| format!("APSIS_BOOK_ADDRESS: {error}"))?)
}
Ok(value) => Some(
parse_address(&value).map_err(|error| format!("APSIS_BOOK_ADDRESS: {error}"))?,
),
Err(_) => None,
};
let mut workers = match std::env::var("APSIS_BOOK_WORKERS") {