Skip to content

Commit

Permalink
review fixes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Mar 20, 2024
1 parent 215b028 commit 8c09b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/add/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(crate) struct AddArgs {
#[arg(global = true, short, long)]
/// Runtime path; for example: `sub0/runtime/src/lib.rs`
/// Runtime cargo manifest path will be inferred as `(parent of lib.rs)/Cargo.toml`
pub(crate) runtime: Option<String>,
pub(crate) runtime_path: Option<String>,
}
#[derive(Subcommand)]
#[command(subcommand_required = true)]
Expand Down Expand Up @@ -43,7 +43,7 @@ pub(crate) struct FrameArgs {
impl AddArgs {
pub(crate) fn execute(&self) -> anyhow::Result<()> {
match self.commands {
AddCommands::Pallet(ref cmd) => cmd.clone().execute(&self.runtime),
AddCommands::Pallet(ref cmd) => cmd.clone().execute(&self.runtime_path),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/engines/pallet_engine/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::{
};
use std::{fs, path::PathBuf};

// use super::{pallet_entry::AddPalletEntry, PalletEngine};

pub fn create_pallet_template(
path: Option<String>,
Expand Down

0 comments on commit 8c09b7e

Please sign in to comment.