mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
style: rustfmt
This commit is contained in:
parent
0c08527fc5
commit
e9e1dcf78e
@ -19,7 +19,9 @@ impl Type<Sqlite> for Uuid {
|
||||
|
||||
impl<'q> Encode<'q, Sqlite> for Uuid {
|
||||
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull {
|
||||
args.push(SqliteArgumentValue::Blob(Cow::Owned(self.as_bytes().to_vec())));
|
||||
args.push(SqliteArgumentValue::Blob(Cow::Owned(
|
||||
self.as_bytes().to_vec(),
|
||||
)));
|
||||
|
||||
IsNull::No
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ use crate::encode::{Encode, IsNull};
|
||||
use crate::error::BoxDynError;
|
||||
use crate::types::Type;
|
||||
|
||||
pub use bstr::{BString, BStr, ByteSlice};
|
||||
pub use bstr::{BStr, BString, ByteSlice};
|
||||
|
||||
impl<DB> Type<DB> for BString
|
||||
where
|
||||
|
||||
@ -112,7 +112,7 @@ mod bstr {
|
||||
use super::*;
|
||||
use sqlx::types::bstr::BString;
|
||||
|
||||
test_type!(bstring<BString>(Sqlite,
|
||||
test_type!(bstring<BString>(Sqlite,
|
||||
"cast('abc123' as blob)" == BString::from(&b"abc123"[..]),
|
||||
"x'0001020304'" == BString::from(&b"\x00\x01\x02\x03\x04"[..])
|
||||
));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user