Skip to content

Commit 2cd3910

Browse files
committed
feat: v0.1.10
1 parent d6481c0 commit 2cd3910

5 files changed

Lines changed: 12 additions & 17 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hyperlane-cli"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]
@@ -13,9 +13,9 @@ exclude = ["target", "Cargo.lock", "sh", ".github", "tmp"]
1313

1414
[dependencies]
1515
toml = "0.9.8"
16-
regex = "1.11.1"
16+
regex = "1.12.3"
1717
thiserror = "2.0.18"
18-
tokio = { version = "1.49.0", features = ["full"] }
18+
tokio = { version = "1.50.0", features = ["full"] }
1919

2020
[profile.dev]
2121
incremental = false

src/bump/fn.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ fn parse_prerelease(prerelease: &str) -> Option<(&str, u64)> {
6060
fn get_next_prerelease(current: Option<&String>, target_type: &str) -> String {
6161
match current {
6262
Some(pre) => {
63-
if let Some((pre_type, number)) = parse_prerelease(pre) {
64-
if pre_type == target_type && number > 0 {
63+
if let Some((pre_type, number)) = parse_prerelease(pre)
64+
&& pre_type == target_type && number > 0 {
6565
return format!("{}.{}", target_type, number + 1);
6666
}
67-
}
6867
format!("{target_type}.1")
6968
}
7069
None => target_type.to_string(),

src/config/fn.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ pub(crate) fn parse_args() -> Args {
125125
}
126126
"--max-retries" => {
127127
i += 1;
128-
if i < raw_args.len() {
129-
if let Ok(n) = raw_args[i].parse::<u32>() {
128+
if i < raw_args.len()
129+
&& let Ok(n) = raw_args[i].parse::<u32>() {
130130
max_retries = n;
131131
}
132-
}
133132
}
134133
_ => {}
135134
}

src/fmt/fn.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ async fn find_rust_files(manifest_path: &Path) -> Result<Vec<PathBuf>, std::io::
7777
find_rust_files_in_dir(&src_dir, &mut files).await?;
7878
}
7979
let content: String = read_to_string(manifest_path)?;
80-
if let Ok(doc) = toml::from_str::<toml::Value>(&content) {
81-
if let Some(workspace) = doc.get("workspace") {
82-
if let Some(members) = workspace
80+
if let Ok(doc) = toml::from_str::<toml::Value>(&content)
81+
&& let Some(workspace) = doc.get("workspace")
82+
&& let Some(members) = workspace
8383
.get("members")
8484
.and_then(|m: &toml::Value| m.as_array())
8585
{
@@ -92,8 +92,6 @@ async fn find_rust_files(manifest_path: &Path) -> Result<Vec<PathBuf>, std::io::
9292
}
9393
}
9494
}
95-
}
96-
}
9795
Ok(files)
9896
}
9997

src/publish/fn.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ fn discover_packages(workspace_root: &Path) -> Result<Vec<Package>, PublishError
1414
let doc: toml::Value =
1515
toml::from_str(&content).map_err(|_| PublishError::ManifestParseError)?;
1616
let mut packages: Vec<Package> = Vec::new();
17-
if let Some(workspace) = doc.get("workspace") {
18-
if let Some(members) = workspace.get("members").and_then(|m| m.as_array()) {
17+
if let Some(workspace) = doc.get("workspace")
18+
&& let Some(members) = workspace.get("members").and_then(|m| m.as_array()) {
1919
for member in members {
2020
if let Some(pattern) = member.as_str() {
2121
let base_path: &Path = workspace_root.parent().unwrap_or(workspace_root);
2222
expand_pattern(base_path, pattern, &mut packages)?;
2323
}
2424
}
2525
}
26-
}
2726
if packages.is_empty() {
2827
let package: Package = read_single_package(workspace_root)?;
2928
packages.push(package);

0 commit comments

Comments
 (0)