Skip to content

Commit 242b02b

Browse files
committed
Convert lock unwrap to expect
1 parent 10b83c1 commit 242b02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustygear/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ impl Client {
774774
for conn in self
775775
.conns
776776
.lock()
777-
.unwrap()
777+
.expect("Threads should not panic while holding lock.")
778778
.iter()
779779
.filter_map(|c| c.to_owned())
780780
{

0 commit comments

Comments
 (0)