File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ fn main() {
149
149
. iter ( )
150
150
. for_each ( |sink| sink. set_formatter ( formatter. clone ( ) ) ) ;
151
151
152
- const SLOT_SIZE : usize = spdlog :: RecordOwned :: __SIZE_OF ;
152
+ const SLOT_SIZE : usize = std :: mem :: size_of :: < spdlog :: RecordOwned > ( ) ;
153
153
let queue_size = args. queue_size . unwrap ( ) ;
154
154
155
155
info ! ( "--------------------------------------------" ) ;
Original file line number Diff line number Diff line change @@ -170,10 +170,6 @@ pub struct RecordOwned {
170
170
}
171
171
172
172
impl RecordOwned {
173
- // For internal (benchmark) use only.
174
- #[ doc( hidden) ]
175
- pub const __SIZE_OF: usize = std:: mem:: size_of :: < Self > ( ) ;
176
-
177
173
/// References as [`Record`] cheaply.
178
174
#[ must_use]
179
175
pub fn as_ref ( & self ) -> Record {
You can’t perform that action at this time.
0 commit comments