Skip to content

Commit 3a1d8e5

Browse files
committed
Use "should" phrasing in Option::expect
One last detail I noticed while writing that big merge message.
1 parent 94fe419 commit 3a1d8e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transcode/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl<P, E> Exchange<P, E> {
194194
fn take_parent(&self) -> P {
195195
self.parent
196196
.take()
197-
.expect("parent already taken from exchange")
197+
.expect("Exchange should have its parent taken exactly once")
198198
}
199199

200200
/// Stores an error for extraction by a parent, along with its source.

0 commit comments

Comments
 (0)