Skip to content

Commit

Permalink
Merge pull request #3956 from Tanguille/docs/clarify-as-expression-to…
Browse files Browse the repository at this point in the history
…-sql

docs: add mention of requirement to implement `ToSql`
  • Loading branch information
weiznich committed Apr 19, 2024
1 parent ca66173 commit 2dc6cc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diesel_derives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ pub fn derive_as_changeset(input: TokenStream) -> TokenStream {
/// you can specify this by adding the annotation `#[diesel(not_sized)]`
/// as attribute on the type. This will skip the impls for non-reference types.
///
/// Using this derive requires implementing the `ToSql` trait for your type.
///
/// # Attributes:
///
/// ## Required container attributes
Expand Down

0 comments on commit 2dc6cc1

Please sign in to comment.