File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -190,8 +190,7 @@ pub enum SendToChannelError {
190
190
#[ non_exhaustive]
191
191
pub enum SendToChannelErrorDropped {
192
192
/// A `log` operation and a record are dropped.
193
- // TODO: Box the `RecordOwned` in the next minor version, as it's a bit large.
194
- Record ( RecordOwned ) ,
193
+ Record ( Box < RecordOwned > ) , // Boxed because `RecordOwned` is a bit large.
195
194
/// A `flush` operation is dropped.
196
195
Flush ,
197
196
}
@@ -244,7 +243,7 @@ impl SendToChannelErrorDropped {
244
243
#[ must_use]
245
244
pub ( crate ) fn from_task ( task : Task ) -> Self {
246
245
match task {
247
- Task :: Log { record, .. } => Self :: Record ( record) ,
246
+ Task :: Log { record, .. } => Self :: Record ( Box :: new ( record) ) ,
248
247
Task :: Flush { .. } => Self :: Flush ,
249
248
}
250
249
}
You can’t perform that action at this time.
0 commit comments