style: minor clippy stuff
This commit is contained in:
parent
24eb77d78f
commit
6765fe930b
3 changed files with 6 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
use hifitime::Epoch;
|
||||
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
|
||||
use std::fmt;
|
||||
use std::fmt::{Formatter, Write};
|
||||
use std::fmt::Formatter;
|
||||
|
||||
#[derive(PartialOrd, PartialEq, Ord, Eq, Clone, Copy, Debug, Default)]
|
||||
#[repr(transparent)]
|
||||
|
@ -30,7 +30,7 @@ impl<'de> Deserialize<'de> for EpochUTC {
|
|||
{
|
||||
struct EpochVisitor;
|
||||
|
||||
impl<'de> de::Visitor<'de> for EpochVisitor {
|
||||
impl de::Visitor<'_> for EpochVisitor {
|
||||
type Value = EpochUTC;
|
||||
|
||||
fn expecting(&self, formatter: &mut Formatter) -> fmt::Result {
|
||||
|
|
Loading…
Add table
Reference in a new issue