mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Merge 'Syntactic improvements' from Jorge López Tello
This is a purely syntactic PR. It doesn't change behavior, just rewrites some loops and removes unneeded parts, like lifetime annotations and references. Mainly because the Clippy and IDE warnings get annoying. Don't worry about the number of commits, I just separated based on type of change. Closes #732
This commit is contained in:
commit
f5e5428d45
38 changed files with 387 additions and 416 deletions
|
@ -214,7 +214,7 @@ pub enum ScalarFunc {
|
|||
}
|
||||
|
||||
impl Display for ScalarFunc {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let str = match self {
|
||||
Self::Cast => "cast".to_string(),
|
||||
Self::Changes => "changes".to_string(),
|
||||
|
@ -343,7 +343,7 @@ impl MathFunc {
|
|||
}
|
||||
|
||||
impl Display for MathFunc {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let str = match self {
|
||||
Self::Acos => "acos".to_string(),
|
||||
Self::Acosh => "acosh".to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue