Skip to content

Commit

Permalink
catching some lints of course
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 26, 2024
1 parent 67f6532 commit 71ae2bf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Imports:
jsonlite,
pkgbuild (>= 1.4.0),
processx,
purrr,
rlang (>= 1.0.5),
rprojroot,
stringi,
Expand Down
3 changes: 1 addition & 2 deletions R/generate_toml.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ generate_cargo.toml <- function(libname = "rextendr",
patch.crates_io = NULL,
extendr_deps = NULL,
features = character(0)) {

# create an empty list if no dependencies are provided
deps <- dependencies %||% list()
# enabled extendr features that we need to impute into all of the
# dependencies
to_impute <- enable_features(extendr_deps, features)

# impute that extendr
for (.name in names(to_impute)) {
deps[[.name]] <- to_impute[[.name]]
}
Expand Down
2 changes: 1 addition & 1 deletion R/standalone-purrr.R
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ list_c <- function(x) {
rlang::inject(c(!!!x))
}

# nocov end
# nocov end
2 changes: 1 addition & 1 deletion R/toml_serialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ to_toml <- function(...,
# The values can be (1) header and body, (2) header only, or (3) body only.
# In the case of (2) and (3) the other element is of length 0, so we need to
# remove them by `c()` first, and then concatenate by "\n" if both exists
x <- glue_collapse(c(header, body), "\n")
glue_collapse(c(header, body), "\n")
})

glue_collapse(tables, "\n\n")
Expand Down

0 comments on commit 71ae2bf

Please sign in to comment.