File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
sqlx-sqlite/src/connection Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -246,13 +246,9 @@ fn parse_args(attr_args: AttributeArgs) -> syn::Result<Args> {
246
246
247
247
fn recurse_lit_lookup ( expr : Expr ) -> Option < Lit > {
248
248
match expr {
249
- Expr :: Lit ( syn:: ExprLit { lit, .. } ) => {
250
- return Some ( lit) ;
251
- }
252
- Expr :: Group ( syn:: ExprGroup { expr, .. } ) => {
253
- return recurse_lit_lookup ( * expr) ;
254
- }
255
- _ => return None ,
249
+ Expr :: Lit ( syn:: ExprLit { lit, .. } ) => Some ( lit) ,
250
+ Expr :: Group ( syn:: ExprGroup { expr, .. } ) => recurse_lit_lookup ( * expr) ,
251
+ _ => None ,
256
252
}
257
253
}
258
254
Original file line number Diff line number Diff line change @@ -145,14 +145,12 @@ impl ConnectionWorker {
145
145
let _guard = span. enter ( ) ;
146
146
match cmd {
147
147
Command :: Prepare { query, tx } => {
148
- tx. send ( prepare ( & mut conn, & query) . map ( |prepared | {
148
+ tx. send ( prepare ( & mut conn, & query) . inspect ( |_ | {
149
149
update_cached_statements_size (
150
150
& conn,
151
151
& shared. cached_statements_size ,
152
152
) ;
153
- prepared
154
- } ) )
155
- . ok ( ) ;
153
+ } ) ) . ok ( ) ;
156
154
}
157
155
Command :: Describe { query, tx } => {
158
156
tx. send ( describe ( & mut conn, & query) ) . ok ( ) ;
You can’t perform that action at this time.
0 commit comments