Skip to content

Commit

Permalink
fix: make LogEvent index operator test only (vectordotdev#18185)
Browse files Browse the repository at this point in the history
  • Loading branch information
pront authored Aug 8, 2023
1 parent d8eefe3 commit 0c1cf23
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 @@ -660,6 +660,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 0c1cf23

Please sign in to comment.