mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 11:50:38 +00:00
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:
@@ -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()),
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user