refactor: draw_block constaints into consts

This commit is contained in:
Jack Wills
2024-01-23 21:43:06 +00:00
parent 9b587ceb77
commit 0436ff1b73
3 changed files with 65 additions and 70 deletions
-2
View File
@@ -48,7 +48,6 @@ 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! unit_struct {
($name:ident) => {
@@ -537,7 +536,6 @@ pub struct ContainerItem {
pub mem_limit: ByteStats,
pub mem_stats: VecDeque<ByteStats>,
pub name: ContainerName,
// todo remove option, can be empty vec
pub ports: Vec<ContainerPorts>,
pub rx: ByteStats,
pub state: State,