chore: prefer returning Err to expect()

This commit is contained in:
Michael Bolin
2025-08-17 11:35:03 -07:00
parent 374c1aa922
commit 53f893ce8c
+1 -2
View File
@@ -59,10 +59,9 @@ pub struct LoginServer {
impl LoginServer {
pub fn block_until_done(self) -> io::Result<()> {
#[expect(clippy::expect_used)]
self.server_handle
.join()
.expect("can't join on the server thread")
.map_err(|err| io::Error::other(format!("login server thread panicked: {err:?}")))?
}
pub fn cancel(&self) {