File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ mod valid_grouping;
6262/// `#[diesel(column_name = some_column_name)]`.
6363///
6464/// To provide custom serialization behavior for a field, you can use
65- /// `#[diesel(serialize_as = " SomeType" )]`. If this attribute is present, Diesel
65+ /// `#[diesel(serialize_as = SomeType)]`. If this attribute is present, Diesel
6666/// will call `.into` on the corresponding field and serialize the instance of `SomeType`,
6767/// rather than the actual field on your struct. This can be used to add custom behavior for a
6868/// single field, or use types that are otherwise unsupported by Diesel.
@@ -97,7 +97,7 @@ mod valid_grouping;
9797/// * `#[diesel(column_name = some_column_name)]`, overrides the column name
9898/// of the current field to `some_column_name`. By default the field
9999/// name is used as column name.
100- /// * `#[diesel(serialize_as = " SomeType" )]`, instead of serializing the actual
100+ /// * `#[diesel(serialize_as = SomeType)]`, instead of serializing the actual
101101/// field type, Diesel will convert the field into `SomeType` using `.into` and
102102/// serialize that instead. By default this derive will serialize directly using
103103/// the actual field type.
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ fn with_explicit_column_names() {
221221#[ test]
222222fn with_serialize_as ( ) {
223223 #[ derive( Debug , FromSqlRow , AsExpression ) ]
224- #[ sql_type = " sql_types::Text" ]
224+ #[ diesel ( sql_type = sql_types:: Text ) ]
225225 struct UppercaseString ( pub String ) ;
226226
227227 impl Into < UppercaseString > for String {
You can’t perform that action at this time.
0 commit comments