Remove clone in vtab from_args

This commit is contained in:
PThorpe92 2025-02-17 21:31:27 -05:00
parent e63436dc47
commit 9b742e1a76
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
4 changed files with 9 additions and 6 deletions

View file

@ -532,7 +532,7 @@ impl VirtualTable {
args: Vec<limbo_ext::Value>,
syms: &SymbolTable,
kind: VTabKind,
exprs: &Option<Vec<ast::Expr>>,
exprs: Option<Vec<ast::Expr>>,
) -> Result<Rc<Self>> {
let module = syms
.vtab_modules
@ -559,7 +559,7 @@ impl VirtualTable {
name: tbl_name.unwrap_or(module_name).to_owned(),
implementation: module.implementation.clone(),
columns,
args: exprs.clone(),
args: exprs,
});
return Ok(vtab);
}