Drop support for logging a single event
This commit is contained in:
parent
77a76f0783
commit
1d4d0272ca
|
@ -15,7 +15,6 @@ use std::time::{Duration, Instant};
|
|||
#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
|
||||
pub enum Signal {
|
||||
Tick,
|
||||
Event(Event),
|
||||
Events(Vec<Event>),
|
||||
}
|
||||
|
||||
|
@ -78,9 +77,6 @@ impl Recorder {
|
|||
Signal::Tick => {
|
||||
self.record_entry()?;
|
||||
}
|
||||
Signal::Event(event) => {
|
||||
self.events.push(event);
|
||||
}
|
||||
Signal::Events(events) => {
|
||||
self.events.extend(events);
|
||||
self.record_entry()?;
|
||||
|
|
Loading…
Reference in New Issue