From: Ian Jackson Date: Sun, 6 Dec 2020 01:15:13 +0000 (+0000) Subject: formatting, some from rustfmt (manually picked) X-Git-Tag: otter-0.2.0~239 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6e2477e38c27b880bc87d0ab8f22edd0e4bdabff;p=otter.git formatting, some from rustfmt (manually picked) Signed-off-by: Ian Jackson --- diff --git a/src/global.rs b/src/global.rs index bbf5074e..a9c98272 100644 --- a/src/global.rs +++ b/src/global.rs @@ -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); - }, + } } >::Ok(()) })().with_context(|| format!("leaf={:?}", leaf))?;