diff options
Diffstat (limited to 'mingling_core')
| -rw-r--r-- | mingling_core/src/program/flag.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mingling_core/src/program/flag.rs b/mingling_core/src/program/flag.rs index 81126e5..74435e4 100644 --- a/mingling_core/src/program/flag.rs +++ b/mingling_core/src/program/flag.rs @@ -4,6 +4,12 @@ pub struct Flag { vec: Vec<&'static str>, } +impl From<()> for Flag { + fn from(_: ()) -> Self { + Flag { vec: vec![] } + } +} + impl From<&'static str> for Flag { fn from(s: &'static str) -> Self { Flag { vec: vec![s] } |
