File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ mod _sqlite {
844844 type Args = ( PyStrRef , ) ;
845845
846846 fn call ( zelf : & Py < Self > , args : Self :: Args , vm : & VirtualMachine ) -> PyResult {
847- if let Some ( stmt) = Statement :: new ( zelf, & args. 0 , vm) ? {
847+ if let Some ( stmt) = Statement :: new ( zelf, args. 0 , vm) ? {
848848 Ok ( stmt. into_ref ( & vm. ctx ) . into ( ) )
849849 } else {
850850 Ok ( vm. ctx . none ( ) )
@@ -1480,7 +1480,7 @@ mod _sqlite {
14801480 stmt. lock ( ) . reset ( ) ;
14811481 }
14821482
1483- let Some ( stmt) = Statement :: new ( & zelf. connection , & sql, vm) ? else {
1483+ let Some ( stmt) = Statement :: new ( & zelf. connection , sql, vm) ? else {
14841484 drop ( inner) ;
14851485 return Ok ( zelf) ;
14861486 } ;
@@ -1552,7 +1552,7 @@ mod _sqlite {
15521552 stmt. lock ( ) . reset ( ) ;
15531553 }
15541554
1555- let Some ( stmt) = Statement :: new ( & zelf. connection , & sql, vm) ? else {
1555+ let Some ( stmt) = Statement :: new ( & zelf. connection , sql, vm) ? else {
15561556 drop ( inner) ;
15571557 return Ok ( zelf) ;
15581558 } ;
@@ -2291,7 +2291,7 @@ mod _sqlite {
22912291 impl Statement {
22922292 fn new (
22932293 connection : & Connection ,
2294- sql : PyRef < PyStr > ,
2294+ sql : PyStrRef ,
22952295 vm : & VirtualMachine ,
22962296 ) -> PyResult < Option < Self > > {
22972297 let sql = sql. try_into_utf8 ( vm) ?;
You can’t perform that action at this time.
0 commit comments