Skip to content

Commit cb40494

Browse files
committed
Udate the Derivative bounds
Signed-off-by: Stephen Wakely <[email protected]>
1 parent 2ffc42a commit cb40494

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/vector-common/src/internal_event/cached_event.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use super::{InternalEventHandle, RegisterInternalEvent};
1717
/// new event is emitted for a previously unseen set of tags an event is registered
1818
/// and stored in the cache.
1919
#[derive(Derivative)]
20-
#[derivative(Clone(bound = ""), Default(bound = "T: Default"))]
21-
pub struct RegisteredEventCache<T: Clone, Event: RegisterTaggedInternalEvent> {
20+
#[derivative(Clone(bound = "T: Clone"))]
21+
pub struct RegisteredEventCache<T, Event: RegisterTaggedInternalEvent> {
2222
fixed_tags: T,
2323
cache: Arc<
2424
RwLock<

lib/vector-core/src/stream/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ where
9999
pin!(batched_input);
100100

101101
let bytes_sent = protocol.map(|protocol| register(BytesSent { protocol }));
102-
let events_sent = RegisteredEventCache::default();
102+
let events_sent = RegisteredEventCache::new(());
103103

104104
loop {
105105
// Core behavior of the loop:

0 commit comments

Comments
 (0)