mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-06 16:54:23 +01:00
fix clippy
This commit is contained in:
@@ -1100,7 +1100,7 @@ fn emit_update_insns(
|
||||
let rowid_reg = program.alloc_register();
|
||||
if has_user_provided_rowid {
|
||||
program.emit_insn(Insn::RowId {
|
||||
cursor_id: cursor_id,
|
||||
cursor_id,
|
||||
dest: rowid_reg,
|
||||
});
|
||||
emit_cdc_insns(
|
||||
|
||||
16
core/util.rs
16
core/util.rs
@@ -1051,15 +1051,13 @@ pub fn parse_pragma_bool(expr: &Expr) -> Result<bool> {
|
||||
if let Value::Integer(x @ (0 | 1)) = number {
|
||||
return Ok(x != 0);
|
||||
}
|
||||
} else {
|
||||
if let Expr::Name(name) = expr {
|
||||
let ident = normalize_ident(&name.0);
|
||||
if TRUE_VALUES.contains(&ident.as_str()) {
|
||||
return Ok(true);
|
||||
}
|
||||
if FALSE_VALUES.contains(&ident.as_str()) {
|
||||
return Ok(false);
|
||||
}
|
||||
} else if let Expr::Name(name) = expr {
|
||||
let ident = normalize_ident(&name.0);
|
||||
if TRUE_VALUES.contains(&ident.as_str()) {
|
||||
return Ok(true);
|
||||
}
|
||||
if FALSE_VALUES.contains(&ident.as_str()) {
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
Err(LimboError::InvalidArgument(
|
||||
|
||||
Reference in New Issue
Block a user