Skip to content

Commit 471c6a8

Browse files
committed
next isn't meant to be an iterator, so tell clippy to ignore it.
1 parent d2ae76f commit 471c6a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ impl<S: Read + Write> Client<S> {
162162
}
163163

164164
/// Switch to a next song in queue
165+
#[cfg_attr(feature = "cargo-clippy", allow(should_implement_trait))]
165166
pub fn next(&mut self) -> Result<()> {
166167
self.run_command("next")
167168
.and_then(|_| self.expect_ok())

0 commit comments

Comments
 (0)