We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4dd176 commit 5da50a2Copy full SHA for 5da50a2
rclrs/src/parameter.rs
@@ -469,6 +469,9 @@ impl ParameterStorage {
469
ParameterKind::DoubleArray => ParameterType::PARAMETER_DOUBLE_ARRAY,
470
ParameterKind::StringArray => ParameterType::PARAMETER_STRING_ARRAY,
471
ParameterKind::Dynamic => match &s.value {
472
+ // Unwraps here are safe because None will only be returned if the RwLock is
473
+ // poisoned, but it is only written in internal set(value) calls that have no
474
+ // way to panic.
475
DeclaredValue::Mandatory(v) => v.read().unwrap().rcl_parameter_type(),
476
DeclaredValue::Optional(v) => v
477
.read()
0 commit comments