Skip to content

Commit a616db0

Browse files
committed
Drop some use of usize internally
1 parent 4894487 commit a616db0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,16 +389,16 @@ struct CachedStatement {
389389

390390
struct InnerConnection {
391391
stream: BufferedStream<MaybeSslStream<InternalStream>>,
392-
next_stmt_id: usize,
393392
notice_handler: Box<NoticeHandler>,
394393
notifications: RingBuf<Notification>,
395394
cancel_data: CancelData,
396395
unknown_types: HashMap<Oid, Type>,
397396
cached_statements: HashMap<String, CachedStatement>,
398-
desynchronized: bool,
399-
finished: bool,
397+
next_stmt_id: u32,
400398
trans_depth: u32,
401399
canary: u32,
400+
desynchronized: bool,
401+
finished: bool,
402402
}
403403

404404
impl Drop for InnerConnection {
@@ -1285,7 +1285,7 @@ pub struct Statement<'conn> {
12851285
name: String,
12861286
param_types: Vec<Type>,
12871287
result_desc: Vec<ResultDescription>,
1288-
next_portal_id: Cell<usize>,
1288+
next_portal_id: Cell<u32>,
12891289
finished: bool,
12901290
}
12911291

0 commit comments

Comments
 (0)