Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Jan 25, 2023
1 parent 6503919 commit 25ade5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ pub async fn build_project(

if let Some(pre_script) = &project.pre_script {
if pre_script.extension().unwrap_or_default() == "rhai" {
script!(
"pre_script",
pre_script,
);
script!("pre_script", pre_script,);
} else {
let p = Command::new("sh").arg("-c").arg(pre_script).status()?;
if !p.success() {
Expand Down Expand Up @@ -430,10 +427,7 @@ pub async fn build_project(

if let Some(post_script) = &project.post_script {
if post_script.extension().unwrap_or_default() == "rhai" {
script!(
"post_script",
post_script,
);
script!("post_script", post_script,);
} else {
let p = Command::new("sh").arg("-c").arg(post_script).status()?;
if !p.success() {
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub struct RpmOpts {
pub no_mirrors: bool,

/// RPM: Builder backend
#[clap(long,short, value_enum, default_value = "mock")]
#[clap(long, short, value_enum, default_value = "mock")]
pub rpm_builder: RPMBuilder,

/// RPM: Define a custom macro
Expand Down

0 comments on commit 25ade5a

Please sign in to comment.