Skip to content
Snippets Groups Projects
Unverified Commit 769b73a1 authored by Nikos Kontakis's avatar Nikos Kontakis
Browse files

fmt

parent 27aff5de
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,11 @@ use lazy_static::lazy_static;
use regex::Regex;
use serde::{ser::SerializeStruct, Deserialize, Serialize};
use crate::shared::constants::{SHOULD_COMPILE, THIS_IS_A_BUG};
use super::{
errors::{ConversionError, FieldError},
helpers::merge_errors,
};
use crate::shared::constants::{SHOULD_COMPILE, THIS_IS_A_BUG};
/// A resource quantity used to define limits (k8s/podman only).
/// It can be constructed from a `&str` or u64, if it fails, it returns a [`ConversionError`].
......
......@@ -9,9 +9,8 @@ use regex::Regex;
use serde::{de, Deserialize, Deserializer, Serialize};
use url::Url;
use crate::shared::constants::{SHOULD_COMPILE, THIS_IS_A_BUG};
use super::{constants::INFAILABLE, errors::ConversionError, resources::Resources};
use crate::shared::constants::{SHOULD_COMPILE, THIS_IS_A_BUG};
/// An alias for a duration in seconds.
pub type Duration = u32;
......@@ -414,6 +413,7 @@ impl ChainDefaultContext {
pub(crate) fn default_args(&self) -> Vec<&Arg> {
self.default_args.iter().collect::<Vec<&Arg>>()
}
/// Set the default arguments
pub(crate) fn set_default_args(&mut self, args: Vec<Arg>) {
self.default_args = args;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment