mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
refactor: remove declaration of self consuming methods in exports
Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
parent
f52aa2d87d
commit
91da9b8f4d
1 changed files with 0 additions and 3 deletions
|
@ -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()))
|
||||
})?
|
||||
|
|
Loading…
Add table
Reference in a new issue