Skip to content

Commit 76cfbf4

Browse files
committed
cleanup imports
1 parent b856e83 commit 76cfbf4

File tree

1 file changed

+4
-2
lines changed
  • rust/functora-tagged/src

1 file changed

+4
-2
lines changed

rust/functora-tagged/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use std::error::Error;
2-
use std::fmt::{Debug, Display};
1+
use std::fmt::Debug;
32
use std::marker::PhantomData;
43
use std::str::FromStr;
54
use thiserror::Error;
@@ -82,6 +81,8 @@ where
8281

8382
#[cfg(feature = "serde")]
8483
use serde::{Deserialize, Serialize};
84+
#[cfg(feature = "serde")]
85+
use std::fmt::Display;
8586

8687
#[cfg(feature = "serde")]
8788
impl<Rep: Serialize, Tag> Serialize for Tagged<Rep, Tag> {
@@ -124,6 +125,7 @@ mod diesel_impl {
124125
use diesel::expression::AsExpression;
125126
use diesel::serialize::{Output, ToSql};
126127
use diesel::sql_types::SingleValue;
128+
use std::error::Error;
127129

128130
impl<Rep, Tag, ST> AsExpression<ST> for Tagged<Rep, Tag>
129131
where

0 commit comments

Comments
 (0)