Skip to content

Commit

Permalink
fix fmt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KekmaTime authored and weiznich committed Mar 4, 2025
1 parent f06ee58 commit 6831488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion diesel/src/sqlite/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,9 @@ extern "SQL" {
/// ```
#[sql_name = "json_type"]
#[cfg(feature = "sqlite")]
fn json_type<J: JsonOrNullableJsonOrJsonbOrNullableJsonb + MaybeNullableValue<Text>>(j: J) -> J::Out;
fn json_type<J: JsonOrNullableJsonOrJsonbOrNullableJsonb + MaybeNullableValue<Text>>(
j: J,
) -> J::Out;

/// The json_type(X,P) function returns the "type" of the element in X that is selected by path P.
/// If the path P in json_type(X,P) selects an element that does not exist in X, then this function returns NULL.
Expand Down
3 changes: 1 addition & 2 deletions diesel/src/sqlite/expression/helper_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ pub type json_type<E> = super::functions::json_type<SqlTypeOf<E>, E>;
/// Return type of [`json_type(json, path)`](super::functions::json_type_with_path())
#[allow(non_camel_case_types)]
#[cfg(feature = "sqlite")]
pub type json_type_with_path<J, P> =
super::functions::json_type_with_path<SqlTypeOf<J>, J, P>;
pub type json_type_with_path<J, P> = super::functions::json_type_with_path<SqlTypeOf<J>, J, P>;

0 comments on commit 6831488

Please sign in to comment.