Skip to content

Commit b6b70d5

Browse files
committed
Remove private associated constant RecordOwned::__SIZE_OF
1 parent 7b08355 commit b6b70d5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

spdlog/benches/spdlog-rs/compare_with_cpp_spdlog_async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn main() {
149149
.iter()
150150
.for_each(|sink| sink.set_formatter(formatter.clone()));
151151

152-
const SLOT_SIZE: usize = spdlog::RecordOwned::__SIZE_OF;
152+
const SLOT_SIZE: usize = std::mem::size_of::<spdlog::RecordOwned>();
153153
let queue_size = args.queue_size.unwrap();
154154

155155
info!("--------------------------------------------");

spdlog/src/record.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ pub struct RecordOwned {
170170
}
171171

172172
impl RecordOwned {
173-
// For internal (benchmark) use only.
174-
#[doc(hidden)]
175-
pub const __SIZE_OF: usize = std::mem::size_of::<Self>();
176-
177173
/// References as [`Record`] cheaply.
178174
#[must_use]
179175
pub fn as_ref(&self) -> Record {

0 commit comments

Comments
 (0)