Skip to content

Commit

Permalink
fix: Refined the None tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-ahmed19 committed Sep 12, 2024
1 parent 4e13d39 commit b6107fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions diesel/src/pg/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1689,9 +1689,8 @@ define_sql_function! {
///
/// let result = diesel::select(json_typeof::<Nullable<Json>, _>(None::<Value>))
/// .get_result::<Option<String>>(connection)?;
/// let expected: Option<String> = None;
///
/// assert_eq!(expected, result);
/// assert!(result.is_none());
/// # Ok(())
/// # }
/// ```
Expand Down Expand Up @@ -1750,9 +1749,8 @@ define_sql_function! {
///
/// let result = diesel::select(jsonb_typeof::<Nullable<Jsonb>, _>(None::<Value>))
/// .get_result::<Option<String>>(connection)?;
/// let expected: Option<String> = None;
///
/// assert_eq!(expected, result);
/// assert!(result.is_none());
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit b6107fc

Please sign in to comment.