diff --git a/tf_r2r/src/tf_buffer.rs b/tf_r2r/src/tf_buffer.rs index 2609c683..510ab89b 100644 --- a/tf_r2r/src/tf_buffer.rs +++ b/tf_r2r/src/tf_buffer.rs @@ -99,7 +99,7 @@ impl TfBuffer { child: v.clone(), parent: current_node.clone(), }) - .map_or(false, |chain| chain.has_valid_transform(time)) + .is_some_and(|chain| chain.has_valid_transform(time)) { parents.insert(v.to_string(), current_node.clone()); frontier.push_front(v.to_string()); diff --git a/tf_rosrust/src/tf_buffer.rs b/tf_rosrust/src/tf_buffer.rs index 90737c64..62dd26cd 100644 --- a/tf_rosrust/src/tf_buffer.rs +++ b/tf_rosrust/src/tf_buffer.rs @@ -98,7 +98,7 @@ impl TfBuffer { child: v.clone(), parent: current_node.clone(), }) - .map_or(false, |chain| chain.has_valid_transform(time)) + .is_some_and(|chain| chain.has_valid_transform(time)) { parents.insert(v.to_string(), current_node.clone()); frontier.push_front(v.to_string());