Minor rustfmt update

This commit is contained in:
Zander Brown 2018-06-08 21:43:07 +01:00 committed by Jordan Petridis
parent a9c38f5a03
commit 54c084040c
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -55,7 +55,10 @@ impl Prefs {
let cleanup_p = settings.get_string("cleanup-age-period").unwrap();
let mut cleanup_pos = 0;
let store = gtk::ListStore::new(&[gtk::Type::String]);
for (i, item) in ["Seconds", "Minutes", "Hours", "Days", "Weeks"].iter().enumerate() {
for (i, item) in ["Seconds", "Minutes", "Hours", "Days", "Weeks"]
.iter()
.enumerate()
{
let row: &[&ToValue] = &[item];
if item.to_lowercase() == cleanup_p {
cleanup_pos = i as i32;