mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
fix clippy
This commit is contained in:
parent
ab92102cd8
commit
759ffc1770
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ impl<'a> Parser<'a> {
|
|||
} else if matches!(token[0], b':' | b'@' | b'$' | b'#') {
|
||||
Ok(Expr::Variable(from_bytes(token)))
|
||||
} else {
|
||||
let variable_str = std::str::from_utf8(&token)
|
||||
let variable_str = std::str::from_utf8(token)
|
||||
.map_err(|e| Error::Custom(format!("non-utf8 positional variable id: {e}")))?;
|
||||
let variable_id = variable_str
|
||||
.parse::<u32>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue