Skip to content

Commit

Permalink
Remove the deriving serde::Serialize from struct Record
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Aug 5, 2024
1 parent 3c4c229 commit d8f091e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spdlog/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ use crate::{Level, SourceLocation};
// FIXME: `Record` still owns some data and not just a reference, I'm not sure this is necessary and
// possible to correct.
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
pub struct Record<'a> {
logger_name: Option<Cow<'a, str>>,
payload: Cow<'a, str>,
inner: Cow<'a, RecordInner>,
}

#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
struct RecordInner {
level: Level,
source_location: Option<SourceLocation>,
Expand Down

0 comments on commit d8f091e

Please sign in to comment.