Skip to content

Commit

Permalink
Fix unstable marker atachment (#1251)
Browse files Browse the repository at this point in the history
* attachment API for Sample is not unstable

* fix SampleBuilderTrait import

* fix clippy

* fix clippy
  • Loading branch information
yellowhatter authored Jul 22, 2024
1 parent b2f88ae commit c58fcdc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions zenoh/src/api/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ use zenoh_protocol::core::ZenohIdProto;
use zenoh_protocol::core::{CongestionControl, Parameters};
use zenoh_result::ZResult;

#[cfg(feature = "unstable")]
use super::{
builders::sample::SampleBuilderTrait, bytes::OptionZBytes, sample::SourceInfo,
selector::ZenohParameters,
};
use super::{
builders::sample::{EncodingBuilderTrait, QoSBuilderTrait},
bytes::ZBytes,
Expand All @@ -44,6 +39,9 @@ use super::{
session::Session,
value::Value,
};
#[cfg(feature = "unstable")]
use super::{sample::SourceInfo, selector::ZenohParameters};
use crate::{bytes::OptionZBytes, sample::SampleBuilderTrait};

/// The [`Queryable`](crate::query::Queryable)s that should be target of a [`get`](Session::get).
pub type QueryTarget = zenoh_protocol::network::request::ext::TargetType;
Expand Down Expand Up @@ -211,9 +209,8 @@ pub struct SessionGetBuilder<'a, 'b, Handler> {
pub(crate) source_info: SourceInfo,
}

#[zenoh_macros::unstable]
impl<Handler> SampleBuilderTrait for SessionGetBuilder<'_, '_, Handler> {
#[cfg(feature = "unstable")]
#[zenoh_macros::unstable]
fn source_info(self, source_info: SourceInfo) -> Self {
Self {
source_info,
Expand Down

0 comments on commit c58fcdc

Please sign in to comment.