--- a/rust/lib-hedgewars-engine/src/ipc.rs Sun Nov 25 05:52:06 2018 +0300
+++ b/rust/lib-hedgewars-engine/src/ipc.rs Sun Nov 25 22:32:49 2018 +0100
@@ -19,7 +19,7 @@
self.out_buffer.write(&message.to_bytes()).unwrap();
}
- pub fn iter(& mut self) -> IPCMessagesIterator {
+ pub fn iter(&mut self) -> IPCMessagesIterator {
IPCMessagesIterator::new(self)
}
}
@@ -45,14 +45,12 @@
}
pub struct IPCMessagesIterator<'a> {
- ipc: &'a mut IPC
+ ipc: &'a mut IPC,
}
impl<'a> IPCMessagesIterator<'a> {
pub fn new(ipc: &'a mut IPC) -> Self {
- Self {
- ipc
- }
+ Self { ipc }
}
}