From d337de3c99d1621f44e247699cc71a03b2261a0a Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 25 Nov 2024 22:29:16 +0900 Subject: [PATCH] chore(examples): Remove redundant pattern match --- 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()?; } }