Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
digorithm authored and abonander committed Oct 17, 2020
1 parent f808a81 commit ce4b8ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sqlx-core/src/mysql/types/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::types::Type;
const COLLATE_UTF8_GENERAL_CI: u16 = 33;
const COLLATE_UTF8_UNICODE_CI: u16 = 192;
const COLLATE_UTF8MB4_UNICODE_CI: u16 = 224;
const COLLATE_UTF8MB4_BIN: u16 = 46
const COLLATE_UTF8MB4_BIN: u16 = 46;

impl Type<MySql> for str {
fn type_info() -> MySqlTypeInfo {
Expand All @@ -35,7 +35,10 @@ impl Type<MySql> for str {
| ColumnType::Enum
) && matches!(
ty.char_set,
COLLATE_UTF8MB4_UNICODE_CI | COLLATE_UTF8_UNICODE_CI | COLLATE_UTF8_GENERAL_CI | COLLATE_UTF8MB4_BIN
COLLATE_UTF8MB4_UNICODE_CI
| COLLATE_UTF8_UNICODE_CI
| COLLATE_UTF8_GENERAL_CI
| COLLATE_UTF8MB4_BIN
)
}
}
Expand Down Expand Up @@ -75,3 +78,4 @@ impl Decode<'_, MySql> for String {
<&str as Decode<MySql>>::decode(value).map(ToOwned::to_owned)
}
}

0 comments on commit ce4b8ca

Please sign in to comment.