aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-05-31 16:05:52 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-05-31 16:05:52 +0200
commit2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 (patch)
treefeb1b11fbc1409214c7ef23299df9ea813888f6e /src/lib.rs
parent4f3aa33ad3c7012105ef897da62220131ac9289c (diff)
downloadevtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.gz
evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.bz2
evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.zip
cargo fmt
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c0b8850..e793760 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -275,7 +275,8 @@ fn set_agent_masters(data: &raw::Evtc, agents: &mut [Agent]) -> Result<(), EvtcE
if event.src_master_instid != 0 {
let mut master_addr = None;
for agent in &*agents {
- if agent.instance_id == event.src_master_instid && agent.first_aware < event.time
+ if agent.instance_id == event.src_master_instid
+ && agent.first_aware < event.time
&& event.time < agent.last_aware
{
master_addr = Some(agent.addr);