summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-25 23:19:52 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-25 23:19:52 +0100
commit74f18a37a244ec92e04bfc4124b7778dc3268e4c (patch)
treea0e9ad3cc200680ad4ec05130426329198196b76 /src/options.rs
parentdc44e5f2312bbb8ac411b9dc0b3b52eb3b351b6c (diff)
downloadrust_rrule-74f18a37a244ec92e04bfc4124b7778dc3268e4c.zip
restructure files
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs2
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;