Diffstat (limited to 'src/ui/toast.rs')
| -rw-r--r-- | src/ui/toast.rs | 4 |
|
1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/toast.rs b/src/ui/toast.rs index 18cd0d0..92df122 100644 --- a/src/ui/toast.rs +++ b/src/ui/toast.rs @@ -34,9 +34,9 @@ } impl Toast { pub fn new<S>(title: Option<S>, msg: S, urgency: Urgency, duration: Option<Duration>) -> Self pub fn new<T>(title: Option<T>, msg: T, urgency: Urgency, duration: Option<Duration>) -> Self where S: Into<Cow<'static, str>>, T: Into<Cow<'static, str>>, { let default_duration = match urgency { Urgency::Normal | Urgency::Success => Duration::from_secs_f32(3.0),
