Remove warnings

This commit is contained in:
continuist 2025-06-24 22:38:16 -04:00
parent bb1bc4bf9b
commit 0117f9b490

View file

@ -11,8 +11,7 @@
use anyhow::Result; use anyhow::Result;
use clap::Parser; use clap::Parser;
use cli::{Cli, Commands, UserCommands, ProductCommands}; use cli::Cli;
use domain::{User, Product, CreateUser, UpdateUser, CreateProduct, UpdateProduct};
use application::Service; use application::Service;
use memory::{InMemoryUserRepository, InMemoryProductRepository}; use memory::{InMemoryUserRepository, InMemoryProductRepository};
use postgres::{PostgresUserRepository, PostgresProductRepository}; use postgres::{PostgresUserRepository, PostgresProductRepository};
@ -351,14 +350,14 @@ async fn test_cli_edge_cases() -> Result<()> {
let cli = Cli::parse_from(&[ let cli = Cli::parse_from(&[
"cli", "user", "create", "--username", "", "--email", "" "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 // Note: Empty strings are currently allowed by the domain layer
// This test documents the current behavior // This test documents the current behavior
let cli = Cli::parse_from(&[ let cli = Cli::parse_from(&[
"cli", "product", "create", "--name", "", "--description", "" "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 // Note: Empty strings are currently allowed by the domain layer
// This test documents the current behavior // This test documents the current behavior
@ -367,14 +366,14 @@ async fn test_cli_edge_cases() -> Result<()> {
let cli = Cli::parse_from(&[ let cli = Cli::parse_from(&[
"cli", "user", "create", "--username", &long_string, "--email", "test@example.com" "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 // Note: Very long strings are currently allowed by the domain layer
// This test documents the current behavior // This test documents the current behavior
let cli = Cli::parse_from(&[ let cli = Cli::parse_from(&[
"cli", "product", "create", "--name", &long_string, "--description", "test" "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 // Note: Very long strings are currently allowed by the domain layer
// This test documents the current behavior // This test documents the current behavior
@ -383,7 +382,7 @@ async fn test_cli_edge_cases() -> Result<()> {
let cli = Cli::parse_from(&[ let cli = Cli::parse_from(&[
"cli", "user", "create", "--username", special_chars, "--email", "test@example.com" "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 // Note: Special characters are currently allowed by the domain layer
// This test documents the current behavior // This test documents the current behavior