chiark / gitweb /
formatting, some from rustfmt (manually picked)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 01:15:13 +0000 (01:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 01:15:13 +0000 (01:15 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs

index bbf5074e3b8495ad37254b4a5f8a9a1c82a042bb..a9c982729dea4e9a3ae856b2c7c72ba63a4a2416 100644 (file)
@@ -1066,20 +1066,20 @@ pub fn load_games(accounts: &mut AccountsGuard,
       let leaf = leaf.as_bytes();
       match savefilename_parse(leaf)? {
         NotGameFile => {
-        },
+        }
         TempToDelete => {
           fs::remove_file(de.path())
             .context("stale temporary file")?;
-        },
+        }
         AccessFile => {
           a_leaves.entry(leaf.to_owned()).or_insert_with(
             || Found(de.path())
           );
-        },
+        }
         GameFile { access_leaf, name } => {
           InstanceGuard::load_game(accounts, games, name)?;
           a_leaves.insert(access_leaf, Used);
-        },
+        }
       }
       <Result<_,anyhow::Error>>::Ok(())
     })().with_context(|| format!("leaf={:?}", leaf))?;