From e161ce3da0b409f3830ed2fcb0be0ad6fce31670 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 4 Sep 2023 12:25:16 +0530 Subject: [PATCH] refactor: remove declaration of self consuming methods in exports Co-authored-by: Filip Tibell --- src/lune/builtins/datetime/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lune/builtins/datetime/mod.rs b/src/lune/builtins/datetime/mod.rs index 70a4af0..eac0644 100644 --- a/src/lune/builtins/datetime/mod.rs +++ b/src/lune/builtins/datetime/mod.rs @@ -37,9 +37,6 @@ pub fn create(lua: &'static Lua) -> LuaResult { .with_function("fromUniversalTime", |lua, date_time: LuaValue| { Ok(DateTime::from_universal_time(DateTimeBuilder::from_lua(date_time, lua).ok())) })? - .with_function("toUniversalTime", |_, this: DateTime| { - Ok(this.to_universal_time()) - })? .with_function("fromLocalTime", |lua, date_time: LuaValue| { Ok(DateTime::from_local_time(DateTimeBuilder::from_lua(date_time, lua).ok())) })?