Skip to content

Commit 0c1cf23

Browse files
authored
fix: make LogEvent index operator test only (#18185)
1 parent d8eefe3 commit 0c1cf23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/vector-core/src/event/log_event.rs

+1
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ impl TryInto<serde_json::Value> for LogEvent {
660660
}
661661
}
662662

663+
#[cfg(any(test, feature = "test"))]
663664
impl<T> std::ops::Index<T> for LogEvent
664665
where
665666
T: AsRef<str>,

0 commit comments

Comments
 (0)