Skip to content

Commit 62f593b

Browse files
committed
fix: resolve clippy warnings for release build
1 parent d91c622 commit 62f593b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl CommandDef {
8585
pub fn effective_readiness_urls(&self) -> Vec<&str> {
8686
let mut urls: Vec<&str> = self.readiness_urls.iter().map(|s| s.as_str()).collect();
8787
if let Some(ref url) = self.readiness_url {
88-
if !urls.iter().any(|u| *u == url.as_str()) {
88+
if !urls.contains(&url.as_str()) {
8989
urls.insert(0, url.as_str());
9090
}
9191
}

src/discovery.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ pub struct DiscoveryResult {
5959
/// meant to be included by other test files, not run directly.
6060
/// Discovery order is deterministic (sorted by path).
6161
/// Parse errors are collected per-file rather than aborting discovery.
62-
pub fn discover_root_tests(root: &Path) -> Result<DiscoveryResult, DiscoveryError> {
62+
pub fn discover_root_tests(root: &Path) -> Result<DiscoveryResult, Box<DiscoveryError>> {
6363
let mut test_files = Vec::new();
64-
collect_test_files(root, &mut test_files).map_err(|e| DiscoveryError::ReadDir {
65-
path: root.display().to_string(),
66-
source: e,
64+
collect_test_files(root, &mut test_files).map_err(|e| {
65+
Box::new(DiscoveryError::ReadDir {
66+
path: root.display().to_string(),
67+
source: e,
68+
})
6769
})?;
6870

6971
// Sort for deterministic order

0 commit comments

Comments
 (0)