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

@@ -114,7 +114,7 @@ impl Function for PyUDF {
_input_types: &[datatypes::prelude::ConcreteDataType],
) -> common_query::error::Result<datatypes::prelude::ConcreteDataType> {
// TODO(discord9): use correct return annotation if exist
match self.copr.return_types.get(0) {
match self.copr.return_types.first() {
Some(Some(AnnotationInfo {
datatype: Some(ty), ..
})) => Ok(ty.clone()),

View File

@@ -272,7 +272,7 @@ fn parse_keywords(keywords: &Vec<ast::Keyword<()>>) -> Result<DecoratorArgs> {
"Expect between {len_min} and {len_max} keyword argument, found {}.",
keywords.len()
),
loc: keywords.get(0).map(|s| s.location)
loc: keywords.first().map(|s| s.location)
}
);
let mut ret_args = DecoratorArgs::default();