From 3c0a00d5f9d7742f5d981af4f43861b9be6ab079 Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 25 Nov 2024 22:36:22 +0900 Subject: [PATCH] chore(examples): Remove redundant pattern match (#2065) --- examples/src/streaming/server.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/src/streaming/server.rs b/examples/src/streaming/server.rs index ab841075b..34cdfb5e6 100644 --- a/examples/src/streaming/server.rs +++ b/examples/src/streaming/server.rs @@ -28,10 +28,7 @@ fn match_for_io_error(err_status: &Status) -> Option<&std::io::Error> { } } - err = match err.source() { - Some(err) => err, - None => return None, - }; + err = err.source()?; } }