From 614df9b5107d5e9fb110bf7176f859e0ffd137b1 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Fri, 30 Aug 2024 11:03:14 +0200 Subject: [PATCH] Fix the doc tests --- diesel/src/pg/expression/functions.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/diesel/src/pg/expression/functions.rs b/diesel/src/pg/expression/functions.rs index 77b4bea0ff42..67af06fd08cd 100644 --- a/diesel/src/pg/expression/functions.rs +++ b/diesel/src/pg/expression/functions.rs @@ -1380,15 +1380,11 @@ define_sql_function! { /// # use diesel::sql_types::{Nullable, Array, Integer}; /// # let connection = &mut establish_connection(); /// - /// let dims = diesel::select(array_ndims::, _>(vec![1, 2])) + /// // diesel currently only supports 1D arrays + /// let dims = diesel::select(array_ndims::, _>(vec![1, 2])) /// .get_result::(connection)?; /// assert_eq!(1, dims); /// - /// let dims = diesel::select(array_ndims::, _>(vec![vec![1, 2], vec![3, 4]])) - /// .get_result::(connection)?; - /// assert_eq!(2, dims); - /// - /// /// # Ok(()) /// # } /// ```