Skip to content

Commit

Permalink
allow more dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 19, 2024
1 parent 5449bbc commit c0faf4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/viewer/re_view_tensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ impl TensorDimension {
.collect()
}

#[allow(dead_code)] // Used for tests
pub fn unnamed(size: u64) -> Self {
Self { size, name: None }
}

#[allow(dead_code)] // Used for tests
pub fn named(size: u64, name: impl Into<re_types::ArrowString>) -> Self {
Self {
size,
Expand Down

0 comments on commit c0faf4e

Please sign in to comment.