From 0117f9b490f1fa8c4f67c1a7140a77db0f44357c Mon Sep 17 00:00:00 2001 From: continuist Date: Tue, 24 Jun 2025 22:38:16 -0400 Subject: [PATCH] Remove warnings --- backend/crates/integration-tests/src/cli_tests.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/backend/crates/integration-tests/src/cli_tests.rs b/backend/crates/integration-tests/src/cli_tests.rs index 2da37b6..6d07159 100644 --- a/backend/crates/integration-tests/src/cli_tests.rs +++ b/backend/crates/integration-tests/src/cli_tests.rs @@ -11,8 +11,7 @@ use anyhow::Result; use clap::Parser; -use cli::{Cli, Commands, UserCommands, ProductCommands}; -use domain::{User, Product, CreateUser, UpdateUser, CreateProduct, UpdateProduct}; +use cli::Cli; use application::Service; use memory::{InMemoryUserRepository, InMemoryProductRepository}; use postgres::{PostgresUserRepository, PostgresProductRepository}; @@ -351,14 +350,14 @@ async fn test_cli_edge_cases() -> Result<()> { let cli = Cli::parse_from(&[ "cli", "user", "create", "--username", "", "--email", "" ]); - let result = cli.run(user_service.clone(), product_service.clone()).await; + let _result = cli.run(user_service.clone(), product_service.clone()).await; // Note: Empty strings are currently allowed by the domain layer // This test documents the current behavior let cli = Cli::parse_from(&[ "cli", "product", "create", "--name", "", "--description", "" ]); - let result = cli.run(user_service.clone(), product_service.clone()).await; + let _result = cli.run(user_service.clone(), product_service.clone()).await; // Note: Empty strings are currently allowed by the domain layer // This test documents the current behavior @@ -367,14 +366,14 @@ async fn test_cli_edge_cases() -> Result<()> { let cli = Cli::parse_from(&[ "cli", "user", "create", "--username", &long_string, "--email", "test@example.com" ]); - let result = cli.run(user_service.clone(), product_service.clone()).await; + let _result = cli.run(user_service.clone(), product_service.clone()).await; // Note: Very long strings are currently allowed by the domain layer // This test documents the current behavior let cli = Cli::parse_from(&[ "cli", "product", "create", "--name", &long_string, "--description", "test" ]); - let result = cli.run(user_service.clone(), product_service.clone()).await; + let _result = cli.run(user_service.clone(), product_service.clone()).await; // Note: Very long strings are currently allowed by the domain layer // This test documents the current behavior @@ -383,7 +382,7 @@ async fn test_cli_edge_cases() -> Result<()> { let cli = Cli::parse_from(&[ "cli", "user", "create", "--username", special_chars, "--email", "test@example.com" ]); - let result = cli.run(user_service.clone(), product_service.clone()).await; + let _result = cli.run(user_service.clone(), product_service.clone()).await; // Note: Special characters are currently allowed by the domain layer // This test documents the current behavior