Add Dynamic::UNIT.

This commit is contained in:
Stephen Chung
2020-11-15 23:14:29 +08:00
parent 937b45a187
commit b75964e383
17 changed files with 34 additions and 26 deletions

View File

@@ -284,7 +284,7 @@ mod string_functions {
}
}
Ok(().into())
Ok(Dynamic::UNIT)
}
#[rhai_fn(name = "pad", return_raw)]
pub fn pad_with_string(
@@ -328,7 +328,7 @@ mod string_functions {
}
}
Ok(().into())
Ok(Dynamic::UNIT)
}
#[cfg(not(feature = "no_index"))]