From 7ad162289ed4af429343ecb059e58763f150951e Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Fri, 26 Feb 2021 16:57:47 +0100 Subject: [PATCH] Another round of adjustments to Trussed, mostly owned ObjectHandles --- src/pipe.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pipe.rs b/src/pipe.rs index 1c0da34..c66efe9 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -215,7 +215,7 @@ where self.state = State::Receiving; self.send_empty_datablock(Chain::ExpectingMore); } - _ => panic!("{:?} unexpected in idle state"), + _ => panic!("unexpectedly in idle state"), } } @@ -234,7 +234,7 @@ where self.call_app(); self.state = State::Processing; } - _ => panic!("{:?} unexpected in receiving state"), + _ => panic!("unexpectedly in receiving state"), } } @@ -245,7 +245,7 @@ where } State::ReadyToSend => { - panic!("{:?} unexpected in ready-to-send state") + panic!("unexpectedly in ready-to-send state") } State::Sending => { @@ -253,7 +253,7 @@ where Chain::ExpectingMore => { self.prime_outbox(); } - _ => panic!("{:?} unexpected in receiving state"), + _ => panic!("unexpectedly in receiving state"), } } }