diff --git a/src/config.rs b/src/config.rs index 1d4715657..c8252d7d9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -483,7 +483,7 @@ pub fn load_workspace_config( if let Some(custom_config_path) = args.custom_config.as_ref() { // when calling with -c option - let cfg = resolve_custom_config(Path::new(custom_config_path))?.unwrap_or_default(); + let cfg = resolve_custom_config(custom_config_path.as_ref())?.unwrap_or_default(); release_config.update(&cfg); } @@ -527,7 +527,7 @@ pub fn load_package_config( pub struct ConfigArgs { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - pub custom_config: Option, + pub custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/changes.rs b/src/steps/changes.rs index 2154c0a7a..31d617fb5 100644 --- a/src/steps/changes.rs +++ b/src/steps/changes.rs @@ -14,7 +14,7 @@ pub struct ChangesStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/commit.rs b/src/steps/commit.rs index b292e50e3..6039c1fb0 100644 --- a/src/steps/commit.rs +++ b/src/steps/commit.rs @@ -14,7 +14,7 @@ pub struct CommitStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/hook.rs b/src/steps/hook.rs index d9088dec1..744896961 100644 --- a/src/steps/hook.rs +++ b/src/steps/hook.rs @@ -22,7 +22,7 @@ pub struct HookStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/owner.rs b/src/steps/owner.rs index d376b2f7c..2812ee94a 100644 --- a/src/steps/owner.rs +++ b/src/steps/owner.rs @@ -13,7 +13,7 @@ pub struct OwnerStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/publish.rs b/src/steps/publish.rs index 34b8b0cc7..a839e2ed3 100644 --- a/src/steps/publish.rs +++ b/src/steps/publish.rs @@ -15,7 +15,7 @@ pub struct PublishStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/push.rs b/src/steps/push.rs index e3f5869df..1e86683dc 100644 --- a/src/steps/push.rs +++ b/src/steps/push.rs @@ -15,7 +15,7 @@ pub struct PushStep { /// Custom config file #[arg(short, long = "config", value_name = "PATH")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/replace.rs b/src/steps/replace.rs index 1d8a21f34..a91b066c8 100644 --- a/src/steps/replace.rs +++ b/src/steps/replace.rs @@ -18,7 +18,7 @@ pub struct ReplaceStep { /// Custom config file #[arg(short, long = "config")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/tag.rs b/src/steps/tag.rs index a4b73a589..899f20a00 100644 --- a/src/steps/tag.rs +++ b/src/steps/tag.rs @@ -19,7 +19,7 @@ pub struct TagStep { /// Custom config file #[arg(short, long = "config")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)] diff --git a/src/steps/version.rs b/src/steps/version.rs index b39c10044..d08b78d04 100644 --- a/src/steps/version.rs +++ b/src/steps/version.rs @@ -14,7 +14,7 @@ pub struct VersionStep { /// Custom config file #[arg(short, long = "config")] - custom_config: Option, + custom_config: Option, /// Ignore implicit configuration files. #[arg(long)]