Skip to content

Commit

Permalink
fix: remove warnings from code
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Nov 23, 2023
1 parent f6efdab commit 04a2627
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ where
path.clone()
.into_iter()
.fold(binding.as_item_mut(), |entry, next_key| {
let value_type = entry.type_name();

if !entry.is_table() {
*entry = toml_edit::Item::Table(toml_edit::Table::default());
};
Expand All @@ -104,7 +102,7 @@ where
lua.from_value::<mlua::Integer>(mlua::Value::Integer(int))?,
),
mlua::Value::Boolean(bool) => toml_edit::value(bool),
mlua::Value::Table(table) => {
mlua::Value::Table(_table) => {
// Update state data within Lua
// for pair in tbl.pairs() {
// let (key, value): (mlua::Value, mlua::Value) = pair?;
Expand Down

0 comments on commit 04a2627

Please sign in to comment.