From 27cf53e41f8b379f606c1c27620ee08e79bac57e Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 6 Jan 2024 22:05:16 +0000 Subject: [PATCH] refactor: rename string_wrapper > unit_struct --- src/app_data/container_state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app_data/container_state.rs b/src/app_data/container_state.rs index 247d6ff..0f81b9e 100644 --- a/src/app_data/container_state.rs +++ b/src/app_data/container_state.rs @@ -49,7 +49,7 @@ impl PartialOrd for ContainerId { /// TODO - use string_wrapper for ContainerId? /// ContainerName and ContainerImage are simple structs, used so can implement custom fmt functions to them -macro_rules! string_wrapper { +macro_rules! unit_struct { ($name:ident) => { #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct $name(String); @@ -90,8 +90,8 @@ macro_rules! string_wrapper { }; } -string_wrapper!(ContainerName); -string_wrapper!(ContainerImage); +unit_struct!(ContainerName); +unit_struct!(ContainerImage); #[derive(Debug, Clone)] pub struct StatefulList {