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()?; } }