Skip to content

Commit 80942e6

Browse files
committed
fix project config
Signed-off-by: Jess Frazelle <github@jessfraz.com>
1 parent 5f8f1bf commit 80942e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd_kcl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,8 @@ fn get_modeling_settings_from_project_toml(input: &std::path::Path) -> Result<kc
10591059
let project_toml = find_project_toml(&dir)?;
10601060
if let Some(project_toml) = project_toml {
10611061
let project_toml = std::fs::read_to_string(&project_toml)?;
1062-
let project_toml: kcl_lib::Configuration = toml::from_str(&project_toml)?;
1063-
let mut settings: kcl_lib::ExecutorSettings = project_toml.settings.modeling.into();
1062+
let project_toml: kcl_lib::ProjectConfiguration = toml::from_str(&project_toml)?;
1063+
let mut settings: kcl_lib::ExecutorSettings = project_toml.into();
10641064
settings.with_current_file(input.into());
10651065
Ok(settings)
10661066
} else {

0 commit comments

Comments
 (0)