Skip to content

Commit

Permalink
Remove private constant RecordOwned::__SIZE_OF
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Aug 29, 2024
1 parent 7b08355 commit f034175
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion spdlog/benches/spdlog-rs/compare_with_cpp_spdlog_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn main() {
.iter()
.for_each(|sink| sink.set_formatter(formatter.clone()));

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

info!("--------------------------------------------");
Expand Down
4 changes: 0 additions & 4 deletions spdlog/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ pub struct RecordOwned {
}

impl RecordOwned {
// For internal (benchmark) use only.
#[doc(hidden)]
pub const __SIZE_OF: usize = std::mem::size_of::<Self>();

/// References as [`Record`] cheaply.
#[must_use]
pub fn as_ref(&self) -> Record {
Expand Down

0 comments on commit f034175

Please sign in to comment.