Skip to content

Commit

Permalink
Implement From<ShowLabels> for bool (#7686)
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr authored Oct 14, 2024
1 parent ce65385 commit ca6ad40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/store/re_types/src/components/show_labels_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ impl Default for ShowLabels {
Self(true.into())
}
}

impl From<ShowLabels> for bool {
#[inline]
fn from(value: ShowLabels) -> Self {
value.0.into()
}
}

0 comments on commit ca6ad40

Please sign in to comment.