Skip to content

Commit

Permalink
bump generator to 0.8.3
Browse files Browse the repository at this point in the history
Fixes pop-os#116. Since currently config::configuration_files is only used with 'static, we change all of its lifetime to 'static.

Ref: Xudong-Huang/generator-rs#49
  • Loading branch information
hack3ric committed Nov 19, 2024
1 parent c403d01 commit d130b5d
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 11 deletions.
131 changes: 125 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tracing = "0.1.37"
fomat-macros = "0.3.2"
const_format = "0.2.30"
kdl = "4.6.0"
generator = "0.7.3"
generator = "0.8.3"
wildmatch = "2.1.1"
ioprio = "0.2.0"
memchr = "2.5.0"
Expand Down
8 changes: 4 additions & 4 deletions config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ pub fn config() -> Config {
}

/// Locates configuration files of a given extension from the given paths.
pub fn configuration_files<'a>(
paths: &'a [&str],
extension: &'a str,
) -> impl Iterator<Item = String> + 'a {
pub fn configuration_files(
paths: &'static [&'static str],
extension: &'static str,
) -> impl Iterator<Item = String> {
generator::Gn::new_scoped(move |mut scope| {
for directory in paths {
if let Ok(dir) = std::fs::read_dir(directory) {
Expand Down

0 comments on commit d130b5d

Please sign in to comment.