Skip to content

Commit a79c773

Browse files
authored
Use IntoIden instead of Into<String> in ColumnType::custom (#994)
1 parent bb07e83 commit a79c773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/table/column.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ impl PartialEq for ColumnType {
167167
impl ColumnType {
168168
pub fn custom<T>(ty: T) -> ColumnType
169169
where
170-
T: Into<String>,
170+
T: IntoIden,
171171
{
172-
ColumnType::Custom(Alias::new(ty).into_iden())
172+
ColumnType::Custom(ty.into_iden())
173173
}
174174

175175
pub fn string(length: Option<u32>) -> ColumnType {

0 commit comments

Comments
 (0)