File tree 3 files changed +4
-4
lines changed
sqlx-sqlite/src/connection
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl<DB: Database> PoolInner<DB> {
94
94
self . on_closed . notify ( usize:: MAX ) ;
95
95
}
96
96
97
- pub ( super ) fn close < ' a > ( self : & ' a Arc < Self > ) -> impl Future < Output = ( ) > + ' a {
97
+ pub ( super ) fn close ( self : & Arc < Self > ) -> impl Future < Output = ( ) > + ' _ {
98
98
self . mark_closed ( ) ;
99
99
100
100
async move {
@@ -124,7 +124,7 @@ impl<DB: Database> PoolInner<DB> {
124
124
///
125
125
/// If we steal a permit from the parent but *don't* open a connection,
126
126
/// it should be returned to the parent.
127
- async fn acquire_permit < ' a > ( self : & ' a Arc < Self > ) -> Result < AsyncSemaphoreReleaser < ' a > , Error > {
127
+ async fn acquire_permit ( self : & Arc < Self > ) -> Result < AsyncSemaphoreReleaser < ' _ > , Error > {
128
128
let parent = self
129
129
. parent ( )
130
130
// If we're already at the max size, we shouldn't try to steal from the parent.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl Decode<'_, Postgres> for BitVec {
55
55
let len = usize:: try_from ( len) . map_err ( |_| format ! ( "invalid VARBIT len: {len}" ) ) ?;
56
56
57
57
// The smallest amount of data we can read is one byte
58
- let bytes_len = ( len + 7 ) / 8 ;
58
+ let bytes_len = len. div_ceil ( 8 ) ;
59
59
60
60
if bytes. remaining ( ) != bytes_len {
61
61
Err ( io:: Error :: new (
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl<V: Eq> IntMap<V> {
128
128
0
129
129
} ;
130
130
self . iter ( )
131
- . chain ( std:: iter:: repeat ( None ) . take ( self_pad) )
131
+ . chain ( std:: iter:: repeat_n ( None , self_pad) )
132
132
. zip ( prev. iter ( ) . chain ( std:: iter:: repeat ( None ) ) )
133
133
. enumerate ( )
134
134
. filter ( |( _i, ( n, p) ) | n != p)
You can’t perform that action at this time.
0 commit comments