mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
refactor: remove luau setters for fields in DateTime
Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
parent
e161ce3da0
commit
f52aa2d87d
1 changed files with 0 additions and 11 deletions
|
@ -88,17 +88,6 @@ impl LuaUserData for DateTime {
|
||||||
Ok(this.unix_timestamp_millis)
|
Ok(this.unix_timestamp_millis)
|
||||||
});
|
});
|
||||||
|
|
||||||
fields.add_field_method_set("unixTimestamp", |_, this, val| {
|
|
||||||
this.unix_timestamp = val;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
});
|
|
||||||
|
|
||||||
fields.add_field_method_set("unixTimestampMillis", |_, this, val| {
|
|
||||||
this.unix_timestamp_millis = val;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
|
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue