Skip to content

Commit

Permalink
chomp: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wowinter13 committed Sep 7, 2024
1 parent 5ba6172 commit 9e63500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diesel/src/pg/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1519,17 +1519,17 @@ define_sql_function! {
/// # fn run_test() -> QueryResult<()> {
/// # use diesel::dsl::to_jsonb;
/// # use serde_json::{json, Value};
/// # use diesel::sql_types::{Integer, Array, Json, Jsonb, Text, Nullable};
/// # use diesel::sql_types::{Integer, Array, Jsonb, Text, Nullable};
/// # let connection = &mut establish_connection();
/// let result = diesel::select(to_jsonb::<Integer, _>(1))
/// .get_result::<Value>(connection)?;
///
/// assert_eq!(json!(1), result);
///
/// let result = diesel::select(to_jsonb::<Array<Text>, _>(vec!["abc", "xyz"]))
/// let result = diesel::select(to_jsonb::<Array<Text>, _>(vec!["abc", "def"]))
/// .get_result::<Value>(connection)?;
///
/// assert_eq!(json!(["abc", "xyz"]), result);
/// assert_eq!(json!(["abc", "def"]), result);
///
/// let result = diesel::select(to_jsonb::<Array<Nullable<Text>>, _>(Vec::<String>::new()))
/// .get_result::<Value>(connection)?;
Expand Down

0 comments on commit 9e63500

Please sign in to comment.