yutannihilation / savvy

A simple R extension interface using Rust
https://yutannihilation.github.io/savvy/guide/
MIT License
63 stars 3 forks source link

refactor(bindgen): remove tab spaces #259

Closed eitsupi closed 3 months ago

eitsupi commented 3 months ago

I was just wondering about the spaces.

before:

.savvy_wrap_RGlareDbConnection <- function(ptr) {
  e <- new.env(parent = emptyenv())
  e$.ptr <- ptr
    e$sql <- RGlareDbConnection_sql(ptr)
  e$prql <- RGlareDbConnection_prql(ptr)
  e$execute <- RGlareDbConnection_execute(ptr)

  class(e) <- "RGlareDbConnection"
  e
}

after:

.savvy_wrap_RGlareDbConnection <- function(ptr) {
  e <- new.env(parent = emptyenv())
  e$.ptr <- ptr
  e$sql <- RGlareDbConnection_sql(ptr)
  e$prql <- RGlareDbConnection_prql(ptr)
  e$execute <- RGlareDbConnection_execute(ptr)

  class(e) <- "RGlareDbConnection"
  e
}

I'm afraid I just edited it on GitHub, so if you have any snapshot tests, etc., I'd appreciate it if you could update it.

yutannihilation commented 3 months ago

Thanks for catching!