common: Don't import Formatter for consistency

This commit is contained in:
Jonas Platte 2022-03-14 19:06:29 +01:00
parent 13e53ea6d5
commit 39cafa3a8f
No known key found for this signature in database
GPG Key ID: BBA95679259D342F

View File

@ -1,6 +1,6 @@
use std::{
clone::Clone,
fmt::{self, Debug, Formatter},
fmt::{self, Debug},
marker::PhantomData,
mem,
};
@ -114,7 +114,7 @@ impl<T> Raw<T> {
{
type Value = Option<T>;
fn expecting(&self, formatter: &mut Formatter<'_>) -> std::fmt::Result {
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> std::fmt::Result {
formatter.write_str("a string")
}
@ -177,7 +177,7 @@ impl<T> Clone for Raw<T> {
}
impl<T> Debug for Raw<T> {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
use std::any::type_name;
f.debug_struct(&format!("Raw::<{}>", type_name::<T>())).field("json", &self.json).finish()
}