Skip to content

Commit

Permalink
Remove Display impl for Token.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 committed Dec 23, 2023
1 parent 0335ce9 commit 453d7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
### Removed
- `From<Token>` implementation for `serde::de::Unexpected`.
- `PartialEq` implementation for `Token`.
- `Display` implementation for `Token`.
- Dependency on `hashbrown` crate.

## 0.6.0 - 2023-11-19
Expand Down
11 changes: 1 addition & 10 deletions src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ use alloc::{
};
use core::{
fmt,
fmt::{
Debug,
Display,
},
fmt::Debug,
marker::PhantomData,
mem::ManuallyDrop,
ptr::NonNull,
Expand Down Expand Up @@ -869,12 +866,6 @@ pub enum Token {
Unordered(&'static [&'static [Token]]),
}

impl Display for Token {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{self:?}")
}
}

/// An enumeration of all tokens that can be emitted by the [`Serializer`].
///
/// [`Serializer`]: crate::Serializer
Expand Down

0 comments on commit 453d7bc

Please sign in to comment.