Can pass arguments directly to docker

This commit is contained in:
sydhds
2025-06-16 14:48:08 +02:00
parent 8e9e6c4b9d
commit cbb058d330
4 changed files with 11 additions and 37 deletions

View File

@@ -39,13 +39,14 @@ impl DerefMut for TierLimits {
}
impl TierLimits {
/// Filter inactive Tier (rejected by validate)
/// Filter inactive Tier (rejected by function validate)
pub(crate) fn filter_inactive(&mut self) -> Self {
let map = std::mem::take(&mut self.0);
let map_filtered = map.into_iter().filter(|(_k, v)| v.active).collect();
Self(map_filtered)
}
/// Validate tier limits (unique names, increasing min & max karma ...)
pub(crate) fn validate(&self) -> Result<(), SetTierLimitsError> {
#[derive(Default)]
struct Context<'a> {