@@ -203,8 +203,8 @@ impl QoSBuilderTrait for AdvancedPublisherBuilder<'_, '_, '_> {
203
203
}
204
204
205
205
#[ zenoh_macros:: unstable]
206
- impl < ' a > Resolvable for AdvancedPublisherBuilder < ' a , ' _ , ' _ > {
207
- type To = ZResult < AdvancedPublisher < ' a > > ;
206
+ impl < ' b > Resolvable for AdvancedPublisherBuilder < ' _ , ' b , ' _ > {
207
+ type To = ZResult < AdvancedPublisher < ' b > > ;
208
208
}
209
209
210
210
#[ zenoh_macros:: unstable]
@@ -238,7 +238,7 @@ pub struct AdvancedPublisher<'a> {
238
238
#[ zenoh_macros:: unstable]
239
239
impl < ' a > AdvancedPublisher < ' a > {
240
240
#[ zenoh_macros:: unstable]
241
- fn new ( conf : AdvancedPublisherBuilder < ' a , ' _ , ' _ > ) -> ZResult < Self > {
241
+ fn new ( conf : AdvancedPublisherBuilder < ' _ , ' a , ' _ > ) -> ZResult < Self > {
242
242
let key_expr = conf. pub_key_expr ?;
243
243
let meta = match conf. meta_key_expr {
244
244
Some ( meta) => Some ( meta?) ,
@@ -247,7 +247,7 @@ impl<'a> AdvancedPublisher<'a> {
247
247
248
248
let publisher = conf
249
249
. session
250
- . declare_publisher ( key_expr. clone ( ) . into_owned ( ) )
250
+ . declare_publisher ( key_expr. clone ( ) )
251
251
. encoding ( conf. encoding )
252
252
. allowed_destination ( conf. destination )
253
253
. reliability ( conf. reliability )
@@ -286,7 +286,7 @@ impl<'a> AdvancedPublisher<'a> {
286
286
287
287
let cache = if conf. cache {
288
288
Some (
289
- AdvancedCacheBuilder :: new ( conf. session , Ok ( key_expr. clone ( ) . into_owned ( ) ) )
289
+ AdvancedCacheBuilder :: new ( conf. session , Ok ( key_expr. clone ( ) ) )
290
290
. history ( conf. history )
291
291
. queryable_prefix ( & prefix)
292
292
. wait ( ) ?,
0 commit comments