commit 8baed5bc1f99b17a9002d3a14db1ede5681a2f40 parent 922328008e97952803e009e33fb772d26a94b77a Author: Drew DeVault <sir@cmpwn.com> Date: Sat, 20 Mar 2021 11:38:10 -0400 cmd/hare: use const where possible Diffstat:
M | cmd/hare/subcmds.ha | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha @@ -225,10 +225,10 @@ fn version(args: []str) void = { fmt::printfln("Hare version {}", VERSION); fmt::errorln(); fmt::printf("Build tags\t"); - let tags = default_tags(); + const tags = default_tags(); for (let i = 0z; i < len(tags); i += 1) { - let tag = tags[i]; - let inclusive = (tag.mode & module::tag_mode::INCLUSIVE) == module::tag_mode::INCLUSIVE; + const tag = tags[i]; + const inclusive = (tag.mode & module::tag_mode::INCLUSIVE) == module::tag_mode::INCLUSIVE; fmt::printf("{}{}", if (inclusive) '+' else '-', tag.name); }; fmt::println();