From 8574b4ef9ae4c1b69575617932a3663a5960dfee Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Tue, 10 Dec 2024 17:33:30 +0100 Subject: [PATCH] fix: add missing mut --- zenoh-ext/src/advanced_subscriber.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh-ext/src/advanced_subscriber.rs b/zenoh-ext/src/advanced_subscriber.rs index eaad4429d..ae7f9312e 100644 --- a/zenoh-ext/src/advanced_subscriber.rs +++ b/zenoh-ext/src/advanced_subscriber.rs @@ -357,7 +357,7 @@ impl Wait for AdvancedSubscriberBuilder<'_, '_, '_, Callback, true> { fn wait(self) -> ::To { let mut sub = AdvancedSubscriber::new(self.with_static_keys())?; sub.subscriber.set_background(true); - if let Some(liveliness_sub) = sub.liveliness_subscriber.take() { + if let Some(mut liveliness_sub) = sub.liveliness_subscriber.take() { liveliness_sub.set_background(true); } Ok(())