diff --git a/diesel/src/serialize.rs b/diesel/src/serialize.rs index 2f2a11146776..b181111b2cb5 100644 --- a/diesel/src/serialize.rs +++ b/diesel/src/serialize.rs @@ -228,11 +228,9 @@ where /// SecondValue, /// } /// -/// impl ToSql for Post -/// where -/// DB: Backend, -/// { -/// fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, DB>) -> serialize::Result { +/// # #[cfg(feature = "mysql")] +/// impl ToSql 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")?, /// Post::SecondValue => out.write_all(b"two")?,