refactor: rename string_wrapper > unit_struct

This commit is contained in:
Jack Wills
2024-01-06 22:05:16 +00:00
parent 50e8050912
commit 27cf53e41f
+3 -3
View File
@@ -49,7 +49,7 @@ impl PartialOrd for ContainerId {
/// TODO - use string_wrapper for ContainerId? /// TODO - use string_wrapper for ContainerId?
/// ContainerName and ContainerImage are simple structs, used so can implement custom fmt functions to them /// 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) => { ($name:ident) => {
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct $name(String); pub struct $name(String);
@@ -90,8 +90,8 @@ macro_rules! string_wrapper {
}; };
} }
string_wrapper!(ContainerName); unit_struct!(ContainerName);
string_wrapper!(ContainerImage); unit_struct!(ContainerImage);
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct StatefulList<T> { pub struct StatefulList<T> {