From a6ce428b9280b17f792bc921a7cd16d23fbc97fb Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Mon, 5 Feb 2024 13:02:13 +0100 Subject: [PATCH] Fix wrong Consolidation cast in codec --- commons/zenoh-codec/src/zenoh/query.rs | 2 +- commons/zenoh-codec/src/zenoh/reply.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/zenoh-codec/src/zenoh/query.rs b/commons/zenoh-codec/src/zenoh/query.rs index ae77f77b48..cb0506e474 100644 --- a/commons/zenoh-codec/src/zenoh/query.rs +++ b/commons/zenoh-codec/src/zenoh/query.rs @@ -100,7 +100,7 @@ where // Body if consolidation != &Consolidation::default() { - self.write(&mut *writer, *consolidation as u64)?; + self.write(&mut *writer, *consolidation)?; } if !parameters.is_empty() { self.write(&mut *writer, parameters)?; diff --git a/commons/zenoh-codec/src/zenoh/reply.rs b/commons/zenoh-codec/src/zenoh/reply.rs index ea8a91f822..d54e98cc5e 100644 --- a/commons/zenoh-codec/src/zenoh/reply.rs +++ b/commons/zenoh-codec/src/zenoh/reply.rs @@ -52,7 +52,7 @@ where // Body if consolidation != &Consolidation::default() { - self.write(&mut *writer, *consolidation as u64)?; + self.write(&mut *writer, *consolidation)?; } // Extensions