Skip to content

Compatibility with edition 2024 #64

@dagurval

Description

@dagurval

Running into issues with configure_me when updating parent project to rust edition 2024

error[E0597]: `args_config` does not live long enough
    --> /Users/x/rostrum/target/debug/build/rostrum-562518c5ac05fc1e/out/configure_me_config.rs:1322:30
     |
1320 |         let mut args_config = raw::Config::default();
     |             --------------- binding `args_config` declared here
1321 |         let mut skip_default_conf_files = false;
1322 |         let remaining_args = args_config.merge_args(args.into_iter().map(Into::into), &mut skip_default_conf_files)?;
     |                              ^^^^^^^^^^^---------------------------------------------------------------------------
     |                              |
     |                              borrowed value does not live long enough
     |                              argument requires that `args_config` is borrowed for `'static`
...
1346 |     }
     |     - `args_config` dropped here while still borrowed
     |
note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions