File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ impl crate::statement::Stmt for crate::hrana::Statement<HttpSender> {
249249 self . run ( params) . await
250250 }
251251
252- fn interrupt ( & mut self ) -> crate :: Result < ( ) > {
252+ fn interrupt ( & self ) -> crate :: Result < ( ) > {
253253 Err ( crate :: Error :: Misuse (
254254 "interrupt is not supported for remote connections" . to_string ( ) ,
255255 ) )
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl Stmt for LibsqlStmt {
129129 stmt. run ( & params)
130130 }
131131
132- fn interrupt ( & mut self ) -> Result < ( ) > {
132+ fn interrupt ( & self ) -> Result < ( ) > {
133133 self . 0 . interrupt ( )
134134 }
135135
Original file line number Diff line number Diff line change @@ -749,7 +749,7 @@ impl Stmt for RemoteStatement {
749749 Ok ( ( ) )
750750 }
751751
752- fn interrupt ( & mut self ) -> Result < ( ) > {
752+ fn interrupt ( & self ) -> Result < ( ) > {
753753 Err ( Error :: Misuse (
754754 "interrupt is not supported for remote connections" . to_string ( ) ,
755755 ) )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub(crate) trait Stmt {
1414
1515 async fn run ( & mut self , params : & Params ) -> Result < ( ) > ;
1616
17- fn interrupt ( & mut self ) -> Result < ( ) > ;
17+ fn interrupt ( & self ) -> Result < ( ) > ;
1818
1919 fn reset ( & mut self ) ;
2020
@@ -65,7 +65,7 @@ impl Statement {
6565 }
6666
6767 /// Interrupt the statement.
68- pub fn interrupt ( & mut self ) -> Result < ( ) > {
68+ pub fn interrupt ( & self ) -> Result < ( ) > {
6969 self . inner . interrupt ( )
7070 }
7171
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ impl Stmt for SyncedStatement {
4747 self . inner . run ( params) . await
4848 }
4949
50- fn interrupt ( & mut self ) -> Result < ( ) > {
50+ fn interrupt ( & self ) -> Result < ( ) > {
5151 self . inner . interrupt ( )
5252 }
5353
You can’t perform that action at this time.
0 commit comments