Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Import Display from std::fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 5, 2024
1 parent 507f4a5 commit 1224744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde::ser::{
Serialize, SerializeMap, SerializeSeq, SerializeStruct, SerializeStructVariant, SerializeTuple,
SerializeTupleStruct, SerializeTupleVariant, Serializer,
};
use std::fmt;
use std::fmt::{self, Display};

#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct Readable<T: ?Sized>(T);
Expand Down Expand Up @@ -361,7 +361,7 @@ macro_rules! impl_serializer {

fn collect_str<T: ?Sized>(self, value: &T) -> Result<Self::Ok, Self::Error>
where
T: fmt::Display,
T: Display,
{
self.0.collect_str(value)
}
Expand Down

0 comments on commit 1224744

Please sign in to comment.