Skip to content

Commit

Permalink
Revert renaming to suppress unused warning
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Dec 5, 2023
1 parent 77615d4 commit ce2c502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rclrs/src/parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ use std::sync::{

#[derive(Clone, Debug)]
struct ParameterOptionsStorage {
description: Arc<str>,
constraints: Arc<str>,
_description: Arc<str>,
_constraints: Arc<str>,
ranges: ParameterRanges,
}

impl<T: ParameterVariant> From<ParameterOptions<T>> for ParameterOptionsStorage {
fn from(opts: ParameterOptions<T>) -> Self {
Self {
description: opts.description,
constraints: opts.constraints,
_description: opts.description,
_constraints: opts.constraints,
ranges: opts.ranges.into(),
}
}
Expand Down

0 comments on commit ce2c502

Please sign in to comment.