mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-04 09:31:05 +00:00
refactor(postgres): make better use of traits to improve protocol handling
This commit is contained in:
@@ -17,12 +17,6 @@ pub struct Oid(
|
||||
pub u32,
|
||||
);
|
||||
|
||||
impl Oid {
|
||||
pub(crate) fn incr_one(&mut self) {
|
||||
self.0 = self.0.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
||||
impl Type<Postgres> for Oid {
|
||||
fn type_info() -> PgTypeInfo {
|
||||
PgTypeInfo::OID
|
||||
|
||||
Reference in New Issue
Block a user