We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5737b8d commit 589825bCopy full SHA for 589825b
src/app_config.rs
@@ -590,10 +590,10 @@ mod test {
590
std::fs::create_dir_all(&env_web_dir).unwrap();
591
std::fs::create_dir_all(&cli_web_dir).unwrap();
592
593
- let config_content = format!(
594
- r#"{{ "web_root": "{}" }}"#,
595
- config_web_dir.to_str().unwrap()
596
- );
+ let config_content = serde_json::json!({
+ "web_root": config_web_dir.to_str().unwrap()
+ })
+ .to_string();
597
std::fs::write(&config_file_path, config_content).unwrap();
598
599
env::set_var("SQLPAGE_WEB_ROOT", env_web_dir.to_str().unwrap());
0 commit comments