widgets/episode: replace deprecated method

This commit is contained in:
Jordan Petridis 2019-03-30 16:59:15 +02:00
parent 7dc1b25ee7
commit 644ca7d0d0
No known key found for this signature in database
GPG Key ID: E8523968931763BE

View File

@ -580,7 +580,7 @@ fn progress_bar_helper(
.total_size
.get_text()
.as_ref()
.map(|s| s.trim_right_matches(" MB"))
.map(|s| s.trim_end_matches(" MB"))
.and_then(|s| s.parse::<i32>().ok())
.is_none()
{