diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-31 08:54:59 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-31 08:54:59 +0800 |
| commit | 6c3b04a1ffb00bcdc3eba614ac3a4cd8d8549aa7 (patch) | |
| tree | 7fb1c65548bef3dcc1acf955b1d12a61978e1f8d /mingling_core/src/program | |
| parent | 537a815efaa3fb85435ca3e500f870d448b17337 (diff) | |
Add From<()> implementation for Flag
Diffstat (limited to 'mingling_core/src/program')
| -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] } |
