chore: deny unused results (#1825)

* chore: deny unused results

* rebase
This commit is contained in:
LFC
2023-06-27 15:33:53 +08:00
committed by GitHub
parent 03057cab6c
commit fcff66e039
247 changed files with 1209 additions and 1171 deletions

View File

@@ -32,14 +32,16 @@ pub struct FunctionRegistry {
impl FunctionRegistry {
pub fn register(&self, func: FunctionRef) {
self.functions
let _ = self
.functions
.write()
.unwrap()
.insert(func.name().to_string(), func);
}
pub fn register_aggregate_function(&self, func: AggregateFunctionMetaRef) {
self.aggregate_functions
let _ = self
.aggregate_functions
.write()
.unwrap()
.insert(func.name(), func);