summaryrefslogtreecommitdiffstats
path: root/src/task.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-09 13:45:24 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-11-09 14:18:23 +0100
commitba3e52c6d38998cf1e62b5b43d90b8f06f9129c3 (patch)
tree18f44d3f648a06f8029d9ba5126755df3487eda7 /src/task.rs
parent41301ada64555841003b24955dc7063a9c81b7dc (diff)
Fix: imask has type f64
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/task.rs')
-rw-r--r--src/task.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/task.rs b/src/task.rs
index 496b069..09b187b 100644
--- a/src/task.rs
+++ b/src/task.rs
@@ -73,7 +73,7 @@ pub struct Task {
end: Option<Date>,
/// The imask is used internally for recurrence
#[builder(default)]
- imask: Option<i64>,
+ imask: Option<f64>,
/// The mask is used internally for recurrence
#[builder(default)]
mask: Option<String>,
@@ -131,7 +131,7 @@ impl Task {
depends: Option<Vec<Uuid>>,
due: Option<Date>,
end: Option<Date>,
- imask: Option<i64>,
+ imask: Option<f64>,
mask: Option<String>,
modified: Option<Date>,
parent: Option<Uuid>,
@@ -292,19 +292,19 @@ impl Task {
}
/// Get the imask of the task
- pub fn imask(&self) -> Option<&i64> {
+ pub fn imask(&self) -> Option<&f64> {
self.imask.as_ref()
}
/// Get the imask of the task mutable
- pub fn imask_mut(&mut self) -> Option<&mut i64> {
+ pub fn imask_mut(&mut self) -> Option<&mut f64> {
self.imask.as_mut()
}
/// Set imask
pub fn set_imask<T>(&mut self, new: Option<T>)
where
- T: Into<i64>,
+ T: Into<f64>,
{
self.imask = new.map(Into::into)
}