mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-20 09:04:10 +00:00
Update itoa and dirs (#1601)
This commit is contained in:
@@ -72,7 +72,7 @@ impl MssqlArguments {
|
||||
self.name.push_str("@p");
|
||||
|
||||
self.ordinal += 1;
|
||||
let _ = itoa::fmt(&mut self.name, self.ordinal);
|
||||
self.name.push_str(itoa::Buffer::new().format(self.ordinal));
|
||||
|
||||
let MssqlArguments {
|
||||
ref name,
|
||||
|
||||
@@ -567,7 +567,7 @@ impl TypeInfo {
|
||||
// size
|
||||
if self.size < 8000 && self.size > 0 {
|
||||
s.push_str("(");
|
||||
let _ = itoa::fmt(&mut *s, self.size);
|
||||
s.push_str(itoa::Buffer::new().format(self.size));
|
||||
s.push_str(")");
|
||||
} else {
|
||||
s.push_str("(max)");
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user