Skip to content

Commit 6831488

Browse files
KekmaTimeweiznich
authored andcommitted
fix fmt issues
1 parent f06ee58 commit 6831488

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

diesel/src/sqlite/expression/functions.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ extern "SQL" {
806806
/// ```
807807
#[sql_name = "json_type"]
808808
#[cfg(feature = "sqlite")]
809-
fn json_type<J: JsonOrNullableJsonOrJsonbOrNullableJsonb + MaybeNullableValue<Text>>(j: J) -> J::Out;
809+
fn json_type<J: JsonOrNullableJsonOrJsonbOrNullableJsonb + MaybeNullableValue<Text>>(
810+
j: J,
811+
) -> J::Out;
810812

811813
/// The json_type(X,P) function returns the "type" of the element in X that is selected by path P.
812814
/// If the path P in json_type(X,P) selects an element that does not exist in X, then this function returns NULL.

diesel/src/sqlite/expression/helper_types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ pub type json_type<E> = super::functions::json_type<SqlTypeOf<E>, E>;
5757
/// Return type of [`json_type(json, path)`](super::functions::json_type_with_path())
5858
#[allow(non_camel_case_types)]
5959
#[cfg(feature = "sqlite")]
60-
pub type json_type_with_path<J, P> =
61-
super::functions::json_type_with_path<SqlTypeOf<J>, J, P>;
60+
pub type json_type_with_path<J, P> = super::functions::json_type_with_path<SqlTypeOf<J>, J, P>;

0 commit comments

Comments
 (0)