Skip to content

Commit c7030d1

Browse files
Remove unused clap imports (#2329)
### What Remove unused clap::arg and clap::command imports. ### Why With newer clap versions, the derive macros bring these imports in automatically. And it looks like the new version of rust, 1.92.0, must have updated it unused imports check to be more strict so we were seeing a bunch of failures on build. ### Known limitations n/a
1 parent 2c263af commit c7030d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+61
-101
lines changed

cmd/soroban-cli/src/commands/cache/actionlog/ls.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use clap::command;
2-
31
use crate::config::{data, locator};
42

53
#[derive(thiserror::Error, Debug)]

cmd/soroban-cli/src/commands/cfg/dir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use super::super::config::locator;
2-
use clap::command;
32

43
#[derive(thiserror::Error, Debug)]
54
pub enum Error {

cmd/soroban-cli/src/commands/cfg/migrate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use super::super::config::locator;
22
use crate::commands::cfg::migrate::Error::InvalidFile;
33
use crate::config::locator::{KeyType, Location};
44
use crate::print::Print;
5-
use clap::command;
65
use sha2::{Digest, Sha256};
76
use std::fs::create_dir_all;
87
use std::path::{Path, PathBuf};

cmd/soroban-cli/src/commands/completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use clap::{arg, CommandFactory, Parser};
1+
use clap::{CommandFactory, Parser};
22
use clap_complete::{generate, Shell};
33
use std::io;
44

cmd/soroban-cli/src/commands/contract/alias/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use clap::{command, Parser};
3+
use clap::Parser;
44

55
use crate::commands::{config::network, global};
66
use crate::config::locator;

cmd/soroban-cli/src/commands/contract/alias/ls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use clap::{command, Parser};
1+
use clap::Parser;
22
use std::collections::HashMap;
33
use std::fmt::Debug;
44
use std::path::Path;

cmd/soroban-cli/src/commands/contract/alias/remove.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use clap::{command, Parser};
3+
use clap::Parser;
44

55
use crate::commands::{config::network, global};
66
use crate::config::locator;

cmd/soroban-cli/src/commands/contract/alias/show.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use std::fmt::Debug;
22

3-
use clap::{command, Parser};
4-
53
use crate::commands::{config::network, global};
64
use crate::config::locator;
75
use crate::print::Print;
6+
use clap::Parser;
87

98
#[derive(Parser, Debug, Clone)]
109
#[group(skip)]

cmd/soroban-cli/src/commands/contract/bindings/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use clap::{command, Parser};
3+
use clap::Parser;
44
use soroban_spec_json;
55

66
use crate::wasm;

cmd/soroban-cli/src/commands/contract/bindings/rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use clap::{command, Parser};
3+
use clap::Parser;
44
use soroban_spec_rust::{self, ToFormattedString};
55

66
use crate::wasm;

0 commit comments

Comments
 (0)