From 2a6aa310397549d0a32a5141497f050cc4814ba8 Mon Sep 17 00:00:00 2001 From: Akmadan23 Date: Sun, 26 Nov 2023 11:27:38 +0100 Subject: [PATCH] Replace deprecated `@vararg` --- lua/nvim-tree/log.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/nvim-tree/log.lua b/lua/nvim-tree/log.lua index 10d5c4dc..146fcb49 100644 --- a/lua/nvim-tree/log.lua +++ b/lua/nvim-tree/log.lua @@ -6,7 +6,7 @@ local M = { --- Write to log file --- @param typ string as per log.types config --- @param fmt string for string.format ---- @vararg any arguments for string.format +--- @param ... any arguments for string.format function M.raw(typ, fmt, ...) if not M.enabled(typ) then return @@ -28,7 +28,7 @@ end --- Write profile start to log file --- START is prefixed --- @param fmt string for string.format ---- @vararg any arguments for string.format +--- @param ... any arguments for string.format --- @return Profile to pass to profile_end function M.profile_start(fmt, ...) local profile = {} @@ -54,7 +54,7 @@ end --- time and typ are prefixed and a trailing newline is added --- @param typ string as per log.types config --- @param fmt string for string.format ---- @vararg any arguments for string.format +--- @param ... any arguments for string.format function M.line(typ, fmt, ...) if M.enabled(typ) then M.raw(typ, string.format("[%s] [%s] %s\n", os.date "%Y-%m-%d %H:%M:%S", typ, (fmt or "???")), ...)