cleanup unneeded .into_iters() and stuff

This commit is contained in:
dawn 2026-01-17 10:25:22 +03:00
parent 553b566595
commit d1451a858d
No known key found for this signature in database
17 changed files with 82 additions and 146 deletions

View file

@ -1,6 +1,6 @@
use super::*;
pub fn cmds() -> impl Iterator<Item = Command> {
pub fn cmds() -> impl IntoIterator<Item = Command> {
let switch = ("switch", ["sw"]);
let edit = ("edit", ["e", "replace"]);
@ -26,5 +26,4 @@ pub fn cmds() -> impl Iterator<Item = Command> {
command!(switch, copy, Optional(MemberRefs) => "switch_copy").flags(edit_flags),
command!(switch, MemberRefs => "switch_do"),
]
.into_iter()
}