chore: update toolchain to 20231219 (#2932)

* update toolchain file, remove unused feature gates

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix clippy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix format

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update action file

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update to 12-19

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-12-19 15:24:08 +08:00
committed by GitHub
parent 3e6a564f8e
commit 6b8dbcfb54
38 changed files with 82 additions and 66 deletions

View File

@@ -211,7 +211,7 @@ mod tests {
.unwrap()
{
Statement::CreateTable(CreateTable { columns, .. }) => {
let ts_col = columns.get(0).unwrap();
let ts_col = columns.first().unwrap();
assert_eq!(
expected_type,
sql_data_type_to_concrete_data_type(&ts_col.data_type).unwrap()

View File

@@ -33,7 +33,9 @@ impl<'a> ParserContext<'a> {
pub(crate) fn parse_copy(&mut self) -> Result<Statement> {
let _ = self.parser.next_token();
let next = self.parser.peek_token();
let copy = if let Word(word) = next.token && word.keyword == Keyword::DATABASE {
let copy = if let Word(word) = next.token
&& word.keyword == Keyword::DATABASE
{
let _ = self.parser.next_token();
let copy_database = self.parser_copy_database()?;
crate::statements::copy::Copy::CopyDatabase(copy_database)

View File

@@ -783,7 +783,7 @@ fn ensure_value_lists_strictly_increased<'a>(
/// Ensure that value list's length matches the column list.
fn ensure_value_list_len_matches_columns(
partitions: &Partitions,
partition_columns: &Vec<&ColumnDef>,
partition_columns: &[&ColumnDef],
) -> Result<()> {
for entry in partitions.entries.iter() {
ensure!(

View File

@@ -107,7 +107,7 @@ impl Insert {
}
}
fn sql_exprs_to_values(exprs: &Vec<Vec<Expr>>) -> Result<Vec<Vec<Value>>> {
fn sql_exprs_to_values(exprs: &[Vec<Expr>]) -> Result<Vec<Vec<Value>>> {
let mut values = Vec::with_capacity(exprs.len());
for es in exprs.iter() {
let mut vs = Vec::with_capacity(es.len());