Rust fmt
This commit is contained in:
@@ -90,8 +90,7 @@ impl Config {
|
||||
disable_service_worker: env_nonempty("SB_DISABLE_SERVICE_WORKER").is_some(),
|
||||
log_push: env_nonempty("SB_LOG_PUSH").is_some(),
|
||||
additional_head_html: env::var("SB_HEAD_HTML").unwrap_or_default(),
|
||||
theme_color: env_nonempty("SB_THEME_COLOR")
|
||||
.unwrap_or_else(|| "#e1e1e1".to_string()),
|
||||
theme_color: env_nonempty("SB_THEME_COLOR").unwrap_or_else(|| "#e1e1e1".to_string()),
|
||||
space_description: env_nonempty("SB_DESCRIPTION")
|
||||
.unwrap_or_else(|| "Powerful and programmable note taking app".to_string()),
|
||||
host_url_prefix: normalize_prefix(&env::var("SB_URL_PREFIX").unwrap_or_default()),
|
||||
|
||||
@@ -123,7 +123,9 @@ fn build_runtime(
|
||||
let logs = silverbullet_server::runtime::LogBuffer::new();
|
||||
match silverbullet_server_runtime_chrome::ChromeTransport::launch(chrome_cfg, logs.clone()) {
|
||||
Ok(transport) => {
|
||||
tracing::info!("headless Chrome runtime configured (launches on first runtime request)");
|
||||
tracing::info!(
|
||||
"headless Chrome runtime configured (launches on first runtime request)"
|
||||
);
|
||||
Some(Box::new(silverbullet_server::runtime::ClientRuntime::new(
|
||||
transport, logs,
|
||||
)))
|
||||
|
||||
Reference in New Issue
Block a user