Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jul 15, 2024
1 parent d19a697 commit 712359c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ rustflags = [
"-Aclippy::must_use_candidate",
"-Aclippy::missing_panics_doc",
"-Aclippy::missing_errors_doc",

# Disable doc-markdown because it asks for backticks to be added around text
# that shouldn't be surrounded by backticks.
# https://github.com/rust-lang/rust-clippy/issues/13097
"-Aclippy::doc_markdown",

# "-Aclippy::missing_safety_doc",
# "-Aclippy::inline_always",
# "-Aclippy::default_trait_access",
Expand Down
6 changes: 3 additions & 3 deletions cmd/soroban-cli/src/commands/config/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pub enum Error {
#[derive(Debug, clap::Args, Clone)]
#[group(skip)]
pub struct Args {
/// Add using secret_key
/// Can provide with SOROBAN_SECRET_KEY
/// Add using `secret_key`
/// Can provide with `SOROBAN_SECRET_KEY`
#[arg(long, conflicts_with = "seed_phrase")]
pub secret_key: bool,
/// Add using 12 word seed phrase to generate secret_key
/// Add using 12 word seed phrase to generate `secret_key`
#[arg(long, conflicts_with = "secret_key")]
pub seed_phrase: bool,
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::rpc;
#[group(skip)]
pub struct Cmd {
/// The first ledger sequence number in the range to pull events
/// https://developers.stellar.org/docs/encyclopedia/ledger-headers#ledger-sequence
/// <https://developers.stellar.org/docs/encyclopedia/ledger-headers#ledger-sequence>
#[arg(long, conflicts_with = "cursor", required_unless_present = "cursor")]
start_ledger: Option<u32>,
/// The cursor corresponding to the start of the event range.
Expand Down Expand Up @@ -128,7 +128,7 @@ pub enum OutputFormat {
Pretty,
/// Human-oriented console output without colors
Plain,
/// JSONified console output
/// JSON formatted console output
Json,
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct Args {
#[clap(flatten)]
pub locator: config::locator::Args,

/// Filter logs output. To turn on "stellar_cli::log::footprint=debug" or off "=off". Can also use env var `RUST_LOG`.
/// Filter logs output. To turn on `stellar_cli::log::footprint=debug` or off `=off`. Can also use env var `RUST_LOG`.
#[arg(long, short = 'f')]
pub filter_logs: Vec<String>,

Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/keys/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct Cmd {
#[command(flatten)]
pub config_locator: locator::Args,

/// When generating a secret key, which hd_path should be used from the original seed_phrase.
/// When generating a secret key, which `hd_path` should be used from the original `seed_phrase`.
#[arg(long)]
pub hd_path: Option<usize>,

Expand Down

0 comments on commit 712359c

Please sign in to comment.