diff options
| author | syeopite <syeopite@syeopite.dev> | 2023-11-08 00:49:37 -0800 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2023-11-08 00:49:37 -0800 |
| commit | ed8b84ed15616cd269ff5759fcc1fa5150259db8 (patch) | |
| tree | 3522c216d3ba4c9f516e60ea8a5f6971a3aa5d26 | |
| parent | 8ce91166d66ff93a0ef791fcc7f53f7ae94f8271 (diff) | |
| download | invidious-ed8b84ed15616cd269ff5759fcc1fa5150259db8.tar.gz invidious-ed8b84ed15616cd269ff5759fcc1fa5150259db8.tar.bz2 invidious-ed8b84ed15616cd269ff5759fcc1fa5150259db8.zip | |
Replace more * in macro with #splat
| -rw-r--r-- | src/invidious/channels/channels.cr | 2 | ||||
| -rw-r--r-- | src/invidious/config.cr | 2 | ||||
| -rw-r--r-- | src/invidious/helpers/errors.cr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/channels/channels.cr b/src/invidious/channels/channels.cr index c3d6124f..be739673 100644 --- a/src/invidious/channels/channels.cr +++ b/src/invidious/channels/channels.cr @@ -93,7 +93,7 @@ struct ChannelVideo def to_tuple {% begin %} { - {{*@type.instance_vars.map(&.name)}} + {{@type.instance_vars.map(&.name).splat}} } {% end %} end diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 429d9246..d5d5f2f2 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -48,7 +48,7 @@ struct ConfigPreferences def to_tuple {% begin %} { - {{*@type.instance_vars.map { |var| "#{var.name}: #{var.name}".id }}} + {{(@type.instance_vars.map { |var| "#{var.name}: #{var.name}".id }).splat}} } {% end %} end diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index 70850063..21b789bc 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -95,7 +95,7 @@ end # ------------------- macro error_atom(*args) - error_atom_helper(env, {{*args}}) + error_atom_helper(env, {{args.splat}}) end def error_atom_helper(env : HTTP::Server::Context, status_code : Int32, exception : Exception) |
