fix warnings

This commit is contained in:
DioCrafts
2025-03-28 06:15:09 +01:00
parent bfbef18117
commit f9955bb710
36 changed files with 15 additions and 2808 deletions
@@ -163,7 +163,7 @@ impl FileReadPort for FileFsReadRepository {
})
}
async fn list_files(&self, folder_id: Option<&str>) -> Result<Vec<File>, DomainError> {
async fn list_files(&self, _folder_id: Option<&str>) -> Result<Vec<File>, DomainError> {
// Implementación real debe obtener la lista de archivos en una carpeta
// Por ahora, devolvemos lista vacía
Ok(Vec::new())
@@ -180,14 +180,14 @@ impl FileReadPort for FileFsReadRepository {
})?;
// Ruta absoluta del archivo
let abs_path = self.path_resolver.resolve_storage_path(file.storage_path());
let _abs_path = self.path_resolver.resolve_storage_path(file.storage_path());
// Implementación real debe leer el contenido del archivo
// Por ahora, devolvemos un vector vacío
Ok(Vec::new())
}
async fn get_file_stream(&self, id: &str) -> Result<Box<dyn Stream<Item = Result<Bytes, std::io::Error>> + Send>, DomainError> {
async fn get_file_stream(&self, _id: &str) -> Result<Box<dyn Stream<Item = Result<Bytes, std::io::Error>> + Send>, DomainError> {
// Implementación real debe devolver un stream de bytes del archivo
// Por ahora, lanzamos un error
Err(DomainError::internal_error("File stream", "Stream functionality not yet implemented"))
@@ -50,7 +50,7 @@ impl UserRepository for UserPgRepository {
let role_str = user.role().to_string();
// Modificar el SQL para hacer un cast explícito al tipo auth.userrole
let result = sqlx::query(
let _result = sqlx::query(
r#"
INSERT INTO auth.users (
id, username, email, password_hash, role,