From d871d6849b4da958fb2e6bd71e791a9ce3f81859 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 7 Dec 2021 11:51:09 +0100 Subject: [PATCH] api-macro: formatting Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/api1.rs | 12 ++++-------- proxmox-api-macro/tests/int-limits.rs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/proxmox-api-macro/tests/api1.rs b/proxmox-api-macro/tests/api1.rs index 88eb74ac..ebb896d5 100644 --- a/proxmox-api-macro/tests/api1.rs +++ b/proxmox-api-macro/tests/api1.rs @@ -67,10 +67,8 @@ fn create_ticket_schema_check() { ( "password", false, - &::proxmox_schema::StringSchema::new( - "The secret password or a valid ticket.", - ) - .schema(), + &::proxmox_schema::StringSchema::new("The secret password or a valid ticket.") + .schema(), ), ( "username", @@ -170,10 +168,8 @@ fn create_ticket_direct_schema_check() { ( "password", false, - &::proxmox_schema::StringSchema::new( - "The secret password or a valid ticket.", - ) - .schema(), + &::proxmox_schema::StringSchema::new("The secret password or a valid ticket.") + .schema(), ), ( "username", diff --git a/proxmox-api-macro/tests/int-limits.rs b/proxmox-api-macro/tests/int-limits.rs index 896a93af..c4cef309 100644 --- a/proxmox-api-macro/tests/int-limits.rs +++ b/proxmox-api-macro/tests/int-limits.rs @@ -1,7 +1,7 @@ //! Test the automatic addition of integer limits. -use proxmox_schema::ApiType; use proxmox_api_macro::api; +use proxmox_schema::ApiType; /// An i16: -32768 to 32767. #[api]