refactor: remove declaration of self consuming methods in exports

Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
Erica Marigold 2023-09-04 12:28:42 +05:30 committed by GitHub
parent f52aa2d87d
commit 91da9b8f4d
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,9 +40,6 @@ pub fn create(lua: &'static Lua) -> LuaResult<LuaTable> {
.with_function("fromLocalTime", |lua, date_time: LuaValue| {
Ok(DateTime::from_local_time(DateTimeBuilder::from_lua(date_time, lua).ok()))
})?
.with_function("toLocalTime", |_, this: DateTime| {
Ok(DateTime::to_local_time(&this))
})?
.with_function("fromIsoDate", |_, iso_date: LuaString| {
Ok(DateTime::from_iso_date(iso_date.to_string_lossy()))
})?