Skip to content

Conversation

DaniPopes
Copy link
Member

Fix all warnings reported by cargo check --features clap/deprecated, see individual commits

warning: use of deprecated function `<commands::db::get::Command as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]`
  --> bin/reth/src/commands/db/get.rs:27:7
   |
27 |     #[clap(long)]
   |       ^^^^
   |
   = note: `#[warn(deprecated)]` on by default
warning: use of deprecated function `<args::network_args::DiscoveryArgs as clap::Args>::augment_args::id_is_only_for_arg`: `#[arg(name)] was allowed by mistake, instead use `#[arg(id)]` or `#[arg(value_name)]`
   --> crates/node-core/src/args/network_args.rs:218:36
    |
218 |     #[arg(long = "discovery.port", name = "discovery.port", value_name = "DISCOVERY_PORT", default_value_t = DEFAULT_DISCOVERY_PORT)]
    |                                    ^^^^
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

but I want to wait until we have #5191

rebase this PR should be easier

@mattsse mattsse added S-blocked This cannot more forward until something else changes A-cli Related to the reth CLI labels Feb 29, 2024
@shekhirin shekhirin force-pushed the dani/clap-deprecated branch from 285d161 to c811d90 Compare February 29, 2024 12:53
@shekhirin shekhirin force-pushed the dani/clap-deprecated branch from c811d90 to 5bbf8f1 Compare February 29, 2024 12:54
@shekhirin shekhirin enabled auto-merge February 29, 2024 12:54
@shekhirin shekhirin added C-debt A clean up/refactor of existing code and removed S-blocked This cannot more forward until something else changes labels Feb 29, 2024
@shekhirin shekhirin added this pull request to the merge queue Feb 29, 2024
Merged via the queue into main with commit 17818e7 Feb 29, 2024
@shekhirin shekhirin deleted the dani/clap-deprecated branch February 29, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI C-debt A clean up/refactor of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants