Skip to content

Commit c30853d

Browse files
Restored the derive for the Copy trait
`Copy` trait derive was previously removed as a variant `Custom` with `Ident` data type was added to the enum. This variant has afterwards been removed as deemed, while necessary to fully capture custom indices, extremely rare (the Postgres documentation itself says that creating custom indices is a rather hard task) and it would be very hard to fully capture in a good manner all possible custom variants.
1 parent 47ea5d4 commit c30853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast/ddl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ impl fmt::Display for KeyOrIndexDisplay {
10301030
/// [1]: https://dev.mysql.com/doc/refman/8.0/en/create-table.html
10311031
/// [2]: https://dev.mysql.com/doc/refman/8.0/en/create-index.html
10321032
/// [3]: https://www.postgresql.org/docs/14/sql-createindex.html
1033-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
1033+
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Hash)]
10341034
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
10351035
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
10361036
pub enum IndexType {

0 commit comments

Comments
 (0)