@@ -33,10 +33,10 @@ impl ProtonClient {
3333 /// # Ok(()) }
3434 /// ```
3535 pub async fn fetch < T : Row > ( & self , query : & str ) -> Result < RowCursor < T > > {
36- return match self . client . query ( query) . fetch :: < T > ( ) {
36+ match self . client . query ( query) . fetch :: < T > ( ) {
3737 Ok ( cursor) => Ok ( cursor) ,
3838 Err ( e) => Err ( ProtonClientError :: FetchFailed ( e. to_string ( ) ) ) ,
39- } ;
39+ }
4040 }
4141
4242 /// Executes the query and returns all the generated results, collected into a Vec.
@@ -76,10 +76,10 @@ impl ProtonClient {
7676 where
7777 T : Row + for < ' b > Deserialize < ' b > ,
7878 {
79- return match self . client . query ( query) . fetch_all :: < T > ( ) . await {
79+ match self . client . query ( query) . fetch_all :: < T > ( ) . await {
8080 Ok ( cursor) => Ok ( cursor) ,
8181 Err ( e) => Err ( ProtonClientError :: FetchAllFailed ( e. to_string ( ) ) ) ,
82- } ;
82+ }
8383 }
8484
8585 /// Executes the query and returns just a single row.
@@ -112,10 +112,10 @@ impl ProtonClient {
112112 where
113113 T : Row + for < ' b > Deserialize < ' b > ,
114114 {
115- return match self . client . query ( query) . fetch_one :: < T > ( ) . await {
115+ match self . client . query ( query) . fetch_one :: < T > ( ) . await {
116116 Ok ( cursor) => Ok ( cursor) ,
117117 Err ( e) => Err ( ProtonClientError :: FetchOneFailed ( e. to_string ( ) ) ) ,
118- } ;
118+ }
119119 }
120120
121121 /// Executes the query and returns at most one row.
@@ -158,9 +158,9 @@ impl ProtonClient {
158158 where
159159 T : Row + for < ' b > Deserialize < ' b > ,
160160 {
161- return match self . client . query ( query) . fetch_optional :: < T > ( ) . await {
161+ match self . client . query ( query) . fetch_optional :: < T > ( ) . await {
162162 Ok ( cursor) => Ok ( cursor) ,
163163 Err ( e) => Err ( ProtonClientError :: FetchOptionalFailed ( e. to_string ( ) ) ) ,
164- } ;
164+ }
165165 }
166166}
0 commit comments