Update itoa and dirs (#1601)

This commit is contained in:
Paolo Barbolini
2021-12-29 20:56:58 +01:00
committed by GitHub
parent beb2100f29
commit fca866d0bc
5 changed files with 17 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ impl PgBufMutExt for Vec<u8> {
// N.B. if you change this don't forget to update it in ../describe.rs
self.extend(b"sqlx_s_");
itoa::write(&mut *self, id).unwrap();
self.extend(itoa::Buffer::new().format(id).as_bytes());
self.push(0);
}
@@ -44,7 +44,7 @@ impl PgBufMutExt for Vec<u8> {
if let Some(id) = id {
self.extend(b"sqlx_p_");
itoa::write(&mut *self, id).unwrap();
self.extend(itoa::Buffer::new().format(id).as_bytes());
}
self.push(0);