summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/task.rs5
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);
}