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

@ -4,7 +4,7 @@ pub fn autoproxy() -> (&'static str, [&'static str; 2]) {
("autoproxy", ["ap", "auto"])
}
pub fn cmds() -> impl Iterator<Item = Command> {
pub fn cmds() -> impl IntoIterator<Item = Command> {
let ap = autoproxy();
[
@ -17,5 +17,4 @@ pub fn cmds() -> impl Iterator<Item = Command> {
.help("Sets autoproxy to front mode"),
command!(ap, MemberRef => "autoproxy_member").help("Sets autoproxy to a specific member"),
]
.into_iter()
}