From 9ccde0cf6342ab6878057f9b7efa99014aa6fd6b Mon Sep 17 00:00:00 2001 From: Dan Spencer Date: Wed, 22 Feb 2023 09:08:01 +0000 Subject: [PATCH] Fixed issue with doctest for stream_subscribe --- kube-runtime/src/utils/watch_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube-runtime/src/utils/watch_ext.rs b/kube-runtime/src/utils/watch_ext.rs index abaef750e..7cda50245 100644 --- a/kube-runtime/src/utils/watch_ext.rs +++ b/kube-runtime/src/utils/watch_ext.rs @@ -79,7 +79,7 @@ pub trait WatchStreamExt: Stream { /// // Create a stream of descriptions of the events /// let explain_stream = subscription.filter_map(|event| async move { /// // We don't care about lagged events so we can throw that error away - /// match event.ok()?.as_deref() { + /// match event.ok()?.as_ref() { /// Ok(watcher::Event::Applied(event)) => { /// Some(format!("An object was added or modified: {event:?}")) /// }