Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybeachthor committed Dec 14, 2024
1 parent 7eb4669 commit 93b2494
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions serde-with-extras/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use serde::Serialize;
pub use indexmap::indexmap as extras;

pub const EXTRAS_COMMENT_BEFORE: &str = "comment";
pub const EXTRAS_COMMENT_AFTER: &str = "comment-after";
pub const EXTRAS_COMMENT_AFTER: &str = "comment-after";

#[derive(Debug, Clone, Serialize)]
pub struct Extras<T>
Expand All @@ -23,9 +23,6 @@ where
{
/// Construct new [Extras] from `inner` value and `extras`.
pub fn new(inner: T, extras: IndexMap<&'static str, String>) -> Self {
Self {
inner,
extras,
}
Self { inner, extras }
}
}

0 comments on commit 93b2494

Please sign in to comment.