fix: type annotate a conversion in mysql/str

This commit is contained in:
Ryan Leckey 2020-07-19 19:14:26 -07:00
parent 41261862d3
commit dc0d325738

View File

@ -27,8 +27,8 @@ impl Type<MySql> for str {
| ColumnType::String
| ColumnType::VarString
| ColumnType::Enum
) && (ty.char_set == COLLATE_UTF8MB4_UNICODE_CI.into()
|| ty.char_set == COLLATE_UTF8_UNICODE_CI.into())
) && (ty.char_set == COLLATE_UTF8MB4_UNICODE_CI as u16
|| ty.char_set == COLLATE_UTF8_UNICODE_CI as u16)
}
}