style(api): merge use decl; breathing-room blank in vocab test

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-02 22:29:51 +02:00
parent 7a18e0e9bf
commit d81b069b8f
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ use domain::{LocalizedLabel, NewTerm, VocabularyId};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use utoipa::ToSchema; use utoipa::ToSchema;
use crate::AppState; use crate::{AppState, admin_objects::LabelView};
use crate::admin_objects::LabelView;
#[derive(Serialize, ToSchema)] #[derive(Serialize, ToSchema)]
pub(crate) struct VocabularyView { pub(crate) struct VocabularyView {
+1
View File
@@ -110,6 +110,7 @@ async fn create_list_vocabulary_and_terms(pool: PgPool) {
.unwrap(); .unwrap();
let list_json: serde_json::Value = let list_json: serde_json::Value =
serde_json::from_slice(&list.into_body().collect().await.unwrap().to_bytes()).unwrap(); serde_json::from_slice(&list.into_body().collect().await.unwrap().to_bytes()).unwrap();
assert!( assert!(
list_json list_json
.as_array() .as_array()