Skip to content

Commit 2493fd1

Browse files
committed
Cargo fmt
1 parent e47d95b commit 2493fd1

File tree

2 files changed

+4
-11
lines changed
  • crates
    • stellar-registry-cli/src/commands
    • stellar-scaffold-cli/src/commands/build

2 files changed

+4
-11
lines changed

crates/stellar-registry-cli/src/commands/publish.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,9 @@ impl Cmd {
6464
ScMetaEntry::ScMetaV0(ScMetaV0 { key, val }) => {
6565
let key_str = key.to_string();
6666
match key_str.as_str() {
67-
"name" => {
68-
Some(format!("--wasm_name={val}"))
69-
}
70-
"binver" => {
71-
Some(format!("--version={val}"))
72-
}
73-
_ => {
74-
None
75-
}
67+
"name" => Some(format!("--wasm_name={val}")),
68+
"binver" => Some(format!("--version={val}")),
69+
_ => None,
7670
}
7771
}
7872
}));

crates/stellar-scaffold-cli/src/commands/build/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ impl Command {
121121
cmd.meta.push(("name".to_string(), p.name.clone()));
122122
}
123123
if !p.version.to_string().is_empty() {
124-
cmd.meta
125-
.push(("binver".to_string(), p.version.to_string()));
124+
cmd.meta.push(("binver".to_string(), p.version.to_string()));
126125
}
127126
if p.homepage.is_some() {
128127
cmd.meta

0 commit comments

Comments
 (0)