mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
cleanup unneeded .into_iters() and stuff
This commit is contained in:
parent
553b566595
commit
d1451a858d
17 changed files with 82 additions and 146 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue