From 6130f536d8cbbfbd6df16c9fa892f3a6042ca386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Thu, 2 May 2024 08:34:11 +0200 Subject: [PATCH] Dont use deprecated splat operator --- src/mqtt/protocol/packets/packets.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt/protocol/packets/packets.cr b/src/mqtt/protocol/packets/packets.cr index 9a656bd..4e34741 100644 --- a/src/mqtt/protocol/packets/packets.cr +++ b/src/mqtt/protocol/packets/packets.cr @@ -9,7 +9,7 @@ macro decode_assert(condition, err, *args) ({{condition}} || raise Error::PacketDecode.new {{err}}) {% else %} # here we just assume it's a class name - ({{condition}} || raise {{err}}.new({{*args}})) + ({{condition}} || raise {{err}}.new({{args.splat}})) {% end %} end