Skip to content

Commit afd4805

Browse files
committed
Bump atomic dependency to the latest
1 parent 7ac8d15 commit afd4805

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spdlog/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ sval = ["value-bag/sval"]
4747

4848
[dependencies]
4949
arc-swap = "1.5.1"
50-
atomic = "0.5.1"
50+
atomic = "0.6.1"
51+
bytemuck = { version = "1.24.0", features = ["derive"] }
5152
chrono = "0.4.22"
5253
crossbeam = { version = "0.8.2", optional = true }
5354
dyn-clone = "1.0.14"

spdlog/src/level.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const LOG_LEVEL_SHORT_NAMES: [&str; Level::count()] = ["C", "E", "W", "I", "D",
5454
///
5555
/// [`log!`]: crate::log!
5656
#[repr(u16)]
57-
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
57+
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, bytemuck::NoUninit)]
5858
pub enum Level {
5959
/// Designates critical errors.
6060
Critical = 0,
@@ -313,7 +313,7 @@ impl From<log::LevelFilter> for LevelFilter {
313313

314314
// This struct must have the same memory layout as `LevelFilter`.
315315
#[repr(C, align(4))]
316-
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
316+
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, bytemuck::NoUninit)]
317317
struct LevelFilterLayout {
318318
discriminant: u16, // Keep the type in sync with the repr of `LevelFilter`
319319
level: Level,

0 commit comments

Comments
 (0)