Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cargo-hammerwork/src/commands/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ mod tests {
command: ArchiveCommand,
}

let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"run",
"--completed-after-days",
Expand All @@ -652,7 +652,7 @@ mod tests {
}

let app =
TestApp::try_parse_from(&["test", "restore", "550e8400-e29b-41d4-a716-446655440000"]);
TestApp::try_parse_from(["test", "restore", "550e8400-e29b-41d4-a716-446655440000"]);

assert!(app.is_ok());
}
Expand Down
14 changes: 7 additions & 7 deletions cargo-hammerwork/src/commands/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ mod tests {
#[test]
fn test_spawn_command_variants() {
// Test that all spawn command variants can be created
let commands = vec![
let commands = [
SpawnCommand::List {
database_url: None,
limit: Some(10),
Expand Down Expand Up @@ -1434,7 +1434,7 @@ mod tests {
}

// Test list command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"list",
"--limit",
Expand All @@ -1459,7 +1459,7 @@ mod tests {
}

// Test tree command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"tree",
"550e8400-e29b-41d4-a716-446655440000",
Expand All @@ -1483,7 +1483,7 @@ mod tests {
}

// Test stats command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"stats",
"--hours",
Expand All @@ -1508,7 +1508,7 @@ mod tests {
}

// Test lineage command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"lineage",
"test-job-id",
Expand All @@ -1535,7 +1535,7 @@ mod tests {
}

// Test pending command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"pending",
"--queue",
Expand All @@ -1554,7 +1554,7 @@ mod tests {
}

// Test monitor command parsing
let app = TestApp::try_parse_from(&[
let app = TestApp::try_parse_from([
"test",
"monitor",
"--interval",
Expand Down
2 changes: 1 addition & 1 deletion cargo-hammerwork/src/commands/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ mod tests {
#[test]
fn test_workflow_command_variants() {
// Test all command variants can be created
let commands = vec![
let commands = [
WorkflowCommand::List {
database_url: None,
limit: Some(10),
Expand Down
Loading
Loading