Skip to content

Commit

Permalink
fix: make LogEvent index operator test only
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Aug 8, 2023
1 parent e476e12 commit 6a1a782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/vector-core/src/event/log_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ impl TryInto<serde_json::Value> for LogEvent {
}
}

#[cfg(any(test, feature = "test"))]
impl<T> std::ops::Index<T> for LogEvent
where
T: AsRef<str>,
Expand Down

0 comments on commit 6a1a782

Please sign in to comment.