Skip to content

Conversation

@DaniPopes
Copy link
Collaborator

structopt has long been discontinued in favor of clap: https://docs.rs/structopt/0.3.26/structopt/index.html#maintenance

/// Returns precompiles addresses.
#[inline]
pub fn addresses<'a>(&'a self) -> Box<dyn ExactSizeIterator<Item = &Address> + 'a> {
pub fn addresses<'a>(&'a self) -> Box<dyn ExactSizeIterator<Item = &'a Address> + 'a> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: elided lifetime has a name
  --> crates/revm/src/context/context_precompiles.rs:98:72
   |
98 |     pub fn addresses<'a>(&'a self) -> Box<dyn ExactSizeIterator<Item = &Address> + 'a> {
   |                      -- lifetime `'a` declared here                    ^ this elided lifetime gets resolved as `'a`
   |
   = note: `#[warn(elided_named_lifetimes)]` on by default

@rakita rakita merged commit a914ddd into bluealloy:main Sep 12, 2024
This was referenced Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants