From 06e20715bf164184e1cd5ed25a31b9ce1cf2c869 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 27 Oct 2024 11:41:39 +0100 Subject: [PATCH] Misc --- src/parser/ast/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/ast/mod.rs b/src/parser/ast/mod.rs index 2d11848..e3b9f86 100644 --- a/src/parser/ast/mod.rs +++ b/src/parser/ast/mod.rs @@ -1268,7 +1268,7 @@ impl ColumnDefinition { } = &constraint.constraint { // The child table may reference the primary key of the parent without specifying the primary key column - if columns.as_ref().map_or(0, std::vec::Vec::len) > 1 { + if columns.as_ref().map_or(0, Vec::len) > 1 { return Err(custom_err!( "foreign key on {} should reference only one column of table {}", col_name,