From c95c6a75f821c1b4936e3a4e5e4460fcc59e6a3c Mon Sep 17 00:00:00 2001 From: Jackson Sandland Date: Thu, 10 May 2018 20:49:58 -0700 Subject: [PATCH] tpu.rs - panic cleanup --- src/tpu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tpu.rs b/src/tpu.rs index 86a9a1056b..d8bdd6a4a4 100644 --- a/src/tpu.rs +++ b/src/tpu.rs @@ -117,7 +117,7 @@ impl Tpu { writeln!( writer.lock().expect("'writer' lock in fn update_entry"), "{}", - serde_json::to_string(&entry).expect("entry to_string in fn update_entry") + serde_json::to_string(&entry).expect("'entry' to_string in fn update_entry") ).expect("writeln! in fn update_entry"); Self::notify_entry_info_subscribers(obj, &entry); } @@ -371,7 +371,7 @@ impl Tpu { if let Ok(event) = result { self.historian_input .lock() - .expect("historian_input lock in in for loop fn process_events") + .expect("historian_input lock in for loop in fn process_events") .send(Signal::Event(event))?; } }