From faf509d4be0fb138a5d6ea2378327c66ff3ad05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kleinb=C3=B6lting?= Date: Thu, 25 Jul 2024 17:45:44 +0200 Subject: [PATCH] Fix Dockerfile warning --- Dockerfile | 4 ++-- dsp-meta/src/repo/service/project_metadata_repository.rs | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae2c24bd..7296910b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM rust:1-slim-bookworm as builder-rs +FROM rust:1-slim-bookworm AS builder-rs WORKDIR /dsp-meta COPY . . RUN cargo install --path ./dsp-meta-cmd -FROM node:21-bookworm-slim as builder-node +FROM node:21-bookworm-slim AS builder-node WORKDIR /dsp-meta COPY . . RUN cd web-frontend && yarn install && yarn run build diff --git a/dsp-meta/src/repo/service/project_metadata_repository.rs b/dsp-meta/src/repo/service/project_metadata_repository.rs index 7d595a5a..9e43721e 100644 --- a/dsp-meta/src/repo/service/project_metadata_repository.rs +++ b/dsp-meta/src/repo/service/project_metadata_repository.rs @@ -2,8 +2,9 @@ use std::collections::HashMap; use std::fs::File; use std::path::Path; use std::sync::{Arc, RwLock}; -use log::info; + use dsp_domain::metadata::value::Shortcode; +use log::info; use tracing::{instrument, trace}; use crate::api::convert::serde::draft_model::{DraftMetadata, DraftProjectStatus}; @@ -90,7 +91,9 @@ impl RepositoryContract for ProjectMetad } else { true } - }).cloned().collect::>(); + }) + .cloned() + .collect::>(); let total = values.len(); let data = values .into_iter()