From 8b91fc9c2fdc8be784239f5f98d53ba83b678f3a Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 29 Jun 2025 18:12:47 -0400 Subject: [PATCH] bench doesn't need to be a class --- lua/dep.lua | 2 +- lua/dep/bench.lua | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lua/dep.lua b/lua/dep.lua index da9174a..d9f7c45 100644 --- a/lua/dep.lua +++ b/lua/dep.lua @@ -62,7 +62,7 @@ end return function(opts) M.config_path = debug.getinfo(2, "S").source:sub(2) logger.pipe = logger:setup() - bench:setup() + bench.setup() lazy.setup() --- make comparison for table.sort diff --git a/lua/dep/bench.lua b/lua/dep/bench.lua index 86d3aff..e8b2135 100644 --- a/lua/dep/bench.lua +++ b/lua/dep/bench.lua @@ -7,11 +7,8 @@ local bench = {} local b -function bench:setup() +function bench.setup() local o = {} - self = {} - self.__index = self - setmetatable(o, self) o.perf = {} o.inited = true