Skip to content

Commit

Permalink
more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed May 2, 2024
1 parent de4194c commit 62848df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions crates/re_types/src/components/triangle_indices_ext.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
use super::TriangleIndices;

#[cfg(feature = "glam")]
impl From<TriangleIndices> for glam::UVec3 {
impl From<super::TriangleIndices> for glam::UVec3 {
#[inline]
fn from(v: TriangleIndices) -> Self {
fn from(v: super::TriangleIndices) -> Self {
Self::new(v.x(), v.y(), v.z())
}
}

#[cfg(feature = "mint")]
impl From<TriangleIndices> for mint::Vector3<u32> {
impl From<super::TriangleIndices> for mint::Vector3<u32> {
#[inline]
fn from(v: TriangleIndices) -> Self {
fn from(v: super::TriangleIndices) -> Self {
Self {
x: v.x(),
y: v.y(),
Expand Down
4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/triangle_indices.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/triangle_indices_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ namespace rerun {
TriangleIndices(uint32_t v0, uint32_t v1, uint32_t v2) : indices{v0, v1, v2} {}

/// Construct UVec3D from v0/v1/v2 uint32_t pointer.
explicit TriangleIndices(const uint32_t* indices)
: indices{indices[0], indices[1], indices[2]} {}
explicit TriangleIndices(const uint32_t* indices_)
: indices{indices_[0], indices_[1], indices_[2]} {}

// </CODEGEN_COPY_TO_HEADER>
};
Expand Down

0 comments on commit 62848df

Please sign in to comment.