fix clippy (#686)

This commit is contained in:
Carter Anderson 2020-10-15 12:49:56 -07:00 committed by GitHub
parent dd91f8e116
commit b03d8da9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ impl Window {
});
}
pub fn drain_commands<'a>(&'a mut self) -> impl Iterator<Item = WindowCommand> + 'a {
pub fn drain_commands(&mut self) -> impl Iterator<Item = WindowCommand> + '_ {
self.command_queue.drain(..)
}
}