Skip to content

Commit

Permalink
use mod instead of super
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludea committed Jul 18, 2024
1 parent 36892ce commit 9233cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diesel/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 222,14 @@ where
/// pub struct PostEnum; //<- generated by diesel cli
/// }
/// #[derive(Debug, AsExpression, PartialEq, Clone)]
/// #[diesel(sql_type = super::PostEnum)]
/// #[diesel(sql_type = sql_types::PostEnum)]
/// pub enum Post {
/// FirstValue,
/// SecondValue,
/// }
///
/// # #[cfg(feature = "mysql")]
/// impl<DB> ToSql<Integer, diesel::mysql::Mysql> for Post {
/// impl<DB> ToSql<sql_types::PostEnum, diesel::mysql::Mysql> for Post {
/// fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, diesel::mysql::Mysql>) -> serialize::Result {
/// match *self {
/// Post::FirstValue => out.write_all(b"one")?,
Expand Down

0 comments on commit 9233cba

Please sign in to comment.