Skip to content

Commit 269c15c

Browse files
committed
Clippy
1 parent d8cfd07 commit 269c15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Monitor {
126126
///
127127
///If `Shutdown` request detected, then return `Ok(false)`
128128
pub fn recv(&mut self) -> Result<bool, ErrorCode> {
129-
for msg in self.iter() {
129+
if let Some(msg) = self.iter().next() {
130130
let msg = msg?;
131131
match msg.id() {
132132
WM_CLIPBOARDUPDATE => return Ok(msg.inner().lParam != CLOSE_PARAM),

0 commit comments

Comments
 (0)