refactor: rename string_wrapper > unit_struct
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user