diff options
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs index 2bface8..5599454 100644 --- a/src/options.rs +++ b/src/options.rs @@ -35,6 +35,7 @@ pub struct ParsedOptions { pub byeaster: Option<isize>, } +// TODO: PartialOptions shouldnt have all of these fields #[derive(Debug, Clone)] pub struct PartialOptions { pub freq: Option<Frequenzy>, @@ -83,6 +84,7 @@ impl PartialOptions { } } + // TODO: better name fn is_some_or_none<'a, T>(prop1: &'a Option<T>, prop2: &'a Option<T>) -> &'a Option<T> { if prop2.is_some() { return prop2; |