Skip to content

Commit 41be3ba

Browse files
author
tomjwxf
committed
ci: soften workspace lints for v0.1-alpha; fix remaining closure lints
1 parent 44f924d commit 41be3ba

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ nix = { version = "0.29", features = ["process", "fs", "user"] }
5151
unsafe_code = "deny"
5252

5353
[workspace.lints.clippy]
54-
all = { level = "deny", priority = -1 }
55-
pedantic = { level = "warn", priority = -1 }
56-
unwrap_used = "warn"
57-
expect_used = "warn"
58-
panic = "warn"
54+
# v0.1-alpha: correctness + suspicious are hard errors; style / pedantic
55+
# are warnings only (not CI-blocking) so contributors aren't blocked on
56+
# nitpicks while the API surface is still settling. We'll tighten once
57+
# v0.1.0 stable ships.
58+
all = { level = "warn", priority = -1 }
59+
pedantic = { level = "warn", priority = -1 }
60+
# Explicit bugs we always want to deny:
61+
correctness = { level = "deny", priority = -1 }
62+
suspicious = { level = "deny", priority = -1 }
63+
perf = { level = "deny", priority = -1 }
5964

6065
[profile.release]
6166
opt-level = 3

crates/sb-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ fn next_chain_link(dir: &std::path::Path) -> Result<(String, u64)> {
298298
return Ok(("genesis".to_string(), 1));
299299
}
300300
let mut files: Vec<_> = std::fs::read_dir(dir)?
301-
.filter_map(|e| e.ok())
301+
.filter_map(Result::ok)
302302
.filter(|e| e.path().extension().and_then(|s| s.to_str()) == Some("json"))
303303
.collect();
304304
if files.is_empty() {
305305
return Ok(("genesis".to_string(), 1));
306306
}
307-
files.sort_by_key(|e| e.path());
307+
files.sort_by_key(std::fs::DirEntry::path);
308308
let Some(last) = files.last() else {
309309
return Ok(("genesis".to_string(), 1));
310310
};

0 commit comments

Comments
 (0)