Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Jan 23, 2025
1 parent b1292bc commit e0dbdf4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions crates/viewer/re_blueprint_tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ smallvec.workspace = true
[dev-dependencies]
# Trick to reliably auto-enable the testing feature when running tests
# see: https://github.com/rust-lang/cargo/issues/2911#issuecomment-1483256987
re_blueprint_tree = { path = ".", default-features = false, features = ["testing"] }
re_blueprint_tree = { path = ".", default-features = false, features = [
"testing",
] }

re_chunk_store.workspace = true
re_view_spatial.workspace = true
Expand All @@ -54,4 +56,3 @@ re_viewport_blueprint = { workspace = true, features = ["testing"] }

egui_kittest.workspace = true
insta = { workspace = true, features = ["redactions", "yaml"] }

2 changes: 1 addition & 1 deletion crates/viewer/re_blueprint_tree/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl DataResultData {
//

// TODO(ab): we're currently only matching on the last part of `hierarchy`. Technically,
// this means that `herarchy` is not needed at all. It will however be needed when we match
// this means that `hierarchy` is not needed at all. It will however be needed when we match
// across multiple parts, so it's good to have it already.
let (entity_part_matches, highlight_sections) = if filter_matcher.matches_everything() {
// fast path (filter is inactive)
Expand Down
6 changes: 3 additions & 3 deletions crates/viewer/re_blueprint_tree/tests/view_structure_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const VIEW_ID: &str = "this-is-a-view-id";
#[derive(Debug, Clone, Copy)]
enum RecordingKind {
/// No entities are logged.
Emtpy,
Empty,

/// Some placeholder entity hierarchy is logged.
Regular,
Expand All @@ -43,7 +43,7 @@ fn base_test_cases() -> impl Iterator<Item = TestCase> {
name: "empty",
origin: EntityPath::root(),
entity_filter: "$origin/**",
recording_kind: RecordingKind::Emtpy,
recording_kind: RecordingKind::Empty,
},
TestCase {
name: "root_origin",
Expand Down Expand Up @@ -96,7 +96,7 @@ fn test_context(test_case: &TestCase) -> TestContext {
test_context.register_view_class::<re_view_spatial::SpatialView3D>();

match test_case.recording_kind {
RecordingKind::Emtpy => {}
RecordingKind::Empty => {}
RecordingKind::Regular => {
test_context.log_entity("/path/to/left".into(), add_point_to_chunk_builder);
test_context.log_entity("/path/to/right".into(), add_point_to_chunk_builder);
Expand Down

0 comments on commit e0dbdf4

Please sign in to comment.