diff options
author | Dheepak Krishnamurthy <me@kdheepak.com> | 2020-10-24 16:22:57 -0600 |
---|---|---|
committer | Dheepak Krishnamurthy <me@kdheepak.com> | 2020-10-24 16:22:57 -0600 |
commit | 06777f6aa1ea90f9e7f0d335f804985f54d08e86 (patch) | |
tree | 1ca7161e6664d20e98e6488404823720bba1d915 | |
parent | b583ec1a91a7544aa10749d066d3d97993c57d02 (diff) |
Fix where syntax
-rw-r--r-- | src/task.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/task.rs b/src/task.rs index f9dd0b6..89d35d9 100644 --- a/src/task.rs +++ b/src/task.rs @@ -510,7 +510,10 @@ impl Task { } /// Set the urgency of the task - pub fn set_urgency<T>(&mut self, new: Option<T>) where T: Into<Urgency> { + pub fn set_urgency<T>(&mut self, new: Option<T>) + where + T: Into<Urgency>, + { self.urgency = new.map(Into::into); } |