Skip to content

Commit a872cd6

Browse files
committed
Rename PrimitiveOptions::apply to apply_to
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 4ff94e2 commit a872cd6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rclrs/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl<'a, T: IntoPrimitiveOptions<'a>> From<T> for ClientOptions<'a> {
308308
fn from(value: T) -> Self {
309309
let primitive = value.into_primitive_options();
310310
let mut options = Self::new(primitive.name);
311-
primitive.apply(&mut options.qos);
311+
primitive.apply_to(&mut options.qos);
312312
options
313313
}
314314
}

rclrs/src/node/primitive_options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl<'a> PrimitiveOptions<'a> {
251251
}
252252

253253
/// Apply the user-specified options to a pre-initialized [`QoSProfile`].
254-
pub fn apply(&self, qos: &mut QoSProfile) {
254+
pub fn apply_to(&self, qos: &mut QoSProfile) {
255255
if let Some(history) = self.history {
256256
qos.history = history;
257257
}

rclrs/src/publisher.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl<'a, T: IntoPrimitiveOptions<'a>> From<T> for PublisherOptions<'a> {
258258
fn from(value: T) -> Self {
259259
let primitive = value.into_primitive_options();
260260
let mut options = Self::new(primitive.name);
261-
primitive.apply(&mut options.qos);
261+
primitive.apply_to(&mut options.qos);
262262
options
263263
}
264264
}

rclrs/src/service.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl<'a, T: IntoPrimitiveOptions<'a>> From<T> for ServiceOptions<'a> {
208208
fn from(value: T) -> Self {
209209
let primitive = value.into_primitive_options();
210210
let mut options = Self::new(primitive.name);
211-
primitive.apply(&mut options.qos);
211+
primitive.apply_to(&mut options.qos);
212212
options
213213
}
214214
}

rclrs/src/subscription.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl<'a, T: IntoPrimitiveOptions<'a>> From<T> for SubscriptionOptions<'a> {
290290
fn from(value: T) -> Self {
291291
let primitive = value.into_primitive_options();
292292
let mut options = Self::new(primitive.name);
293-
primitive.apply(&mut options.qos);
293+
primitive.apply_to(&mut options.qos);
294294
options
295295
}
296296
}

0 commit comments

Comments
 (0)