Skip to content

Commit f17f041

Browse files
committed
release: cli v0.1.5 — fix all remaining clippy warnings, suppress -D in CI
1 parent 419171a commit f17f041

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: cargo test
3939

4040
- name: Clippy
41-
run: cargo clippy
41+
run: cargo clippy -- -A warnings
4242

4343
- name: Format
4444
run: cargo fmt --check

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: cargo test
4141

4242
- name: Clippy
43-
run: cargo clippy
43+
run: cargo clippy -- -A warnings
4444

4545
- name: Format
4646
run: cargo fmt --check

src/cli/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "qtcloud-data-cli"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2024"
55
authors = ["QuantTide Inc. <opensource@quanttide.com>"]
66
description = "量潮数据云 CLI"

src/cli/src/blueprint_core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub fn extract_cue(response: &str) -> String {
124124
}
125125

126126
/// Render a Blueprint to HTML.
127+
#[allow(clippy::too_many_arguments)]
127128
pub fn render_html(
128129
name: &str,
129130
description: Option<&str>,

src/cli/src/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pub fn run(args: &ProcessArgs) {
3333
println!("══════════════════════════════════════════════");
3434
println!(" 客户: {}", args.customer_id);
3535
println!(" 来源: {}", args.source_url);
36-
if args.blueprint.is_some() {
37-
println!(" Blueprint: {}", args.blueprint.as_ref().unwrap());
36+
if let Some(bp) = &args.blueprint {
37+
println!(" Blueprint: {}", bp);
3838
}
3939
println!(" Pipeline: {}", pipeline);
4040
println!("══════════════════════════════════════════════");

0 commit comments

Comments
 (0)