From 7feb9055e765834a7a578dceb94edbbb0845afa7 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:45:28 +0200 Subject: [PATCH] fix: correctly add scripts to manifest --- src/cli/init.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/init.rs b/src/cli/init.rs index 975f6b5..8f152ca 100644 --- a/src/cli/init.rs +++ b/src/cli/init.rs @@ -146,12 +146,12 @@ impl InitCommand { ) .context("failed to write script file")?; - let mut scripts = manifest + let scripts = manifest .entry("scripts") .or_insert(toml_edit::Item::Table(toml_edit::Table::new())) - .to_owned() - .into_table() + .as_table_mut() .unwrap(); + scripts[&ScriptName::RobloxSyncConfigGenerator.to_string()] = toml_edit::value(format!( concat!(".", env!("CARGO_PKG_NAME"), "/{}.luau"),